af_redditimgur: handle i.reddituploads.com as pictures

This commit is contained in:
Andrew Dolgov 2016-07-07 09:04:38 +03:00
parent cfc2fe50cb
commit eb95d1bddf
1 changed files with 3 additions and 1 deletions

View File

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