af_redditimgur: handle i.reddituploads.com as pictures
This commit is contained in:
parent
cfc2fe50cb
commit
eb95d1bddf
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue