mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:45:56 +00:00
af_redditimgur: handle i.reddituploads.com as pictures
This commit is contained in:
@@ -179,7 +179,9 @@ class Af_RedditImgur extends Plugin {
|
||||
$found = true;
|
||||
}
|
||||
|
||||
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?$/i", $entry->getAttribute("href"))) {
|
||||
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9][0-9]*)?$/i", $entry->getAttribute("href")) ||
|
||||
mb_strpos($entry->getAttribute("href"), "i.reddituploads.com") !== FALSE) {
|
||||
|
||||
_debug("Handling as a picture", $debug);
|
||||
|
||||
$img = $doc->createElement('img');
|
||||
|
||||
Reference in New Issue
Block a user