af_redditimgur: handle i.reddituploads.com as pictures

master
Andrew Dolgov 8 years ago
parent cfc2fe50cb
commit eb95d1bddf

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

Loading…
Cancel
Save