mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:55:55 +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;
|
$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);
|
_debug("Handling as a picture", $debug);
|
||||||
|
|
||||||
$img = $doc->createElement('img');
|
$img = $doc->createElement('img');
|
||||||
|
|||||||
Reference in New Issue
Block a user