af_redditimgur: also blacklist in-content links

This commit is contained in:
Andrew Dolgov 2021-01-03 10:55:57 +03:00
parent 2abc434e26
commit 8764662138
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ class Af_RedditImgur extends Plugin {
foreach ($entries as $entry) {
if ($entry->hasAttribute("href") && strpos($entry->getAttribute("href"), "reddit.com") === false) {
if ($this->is_blacklisted($entry->getAttribute("href")))
continue;
Debug::log("processing href: " . $entry->getAttribute("href"), Debug::$LOG_VERBOSE);
$matches = array();