summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-06-24 22:54:14 +0300
committerAndrew Dolgov <[email protected]>2020-06-24 22:54:14 +0300
commitc352e872e9c54686e09ecb51cba1a59291d5b685 (patch)
tree5cd1b4a37b968ee18463f2e2213d88f7ec7e76e6 /plugins
parent6eb94f1e1397ae97ed9a0e78d0edc2d04b0915a6 (diff)
core: pass found enclosures to HOOK_ARTICLE_FILTER
af_redditimgur: remove enclosures if we found something to embed because it's going to be a low-res thumbnail
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/af_redditimgur/init.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index d28e072f4..5c2df3194 100755
--- a/plugins/af_redditimgur/init.php
+++ b/plugins/af_redditimgur/init.php
@@ -437,6 +437,7 @@ class Af_RedditImgur extends Plugin {
if ($node && $found) {
$article["content"] = $doc->saveHTML($node);
+ $article["enclosures"] = [];
} else if ($content_link) {
$article = $this->readability($article, $content_link->getAttribute("href"), $doc, $xpath);
}