mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:55:56 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user