1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45: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:
Andrew Dolgov
2020-06-24 22:54:14 +03:00
parent 6eb94f1e13
commit c352e872e9
2 changed files with 35 additions and 32 deletions

View File

@@ -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);
}