af_redditimgur: do not embed content of reddit links

This commit is contained in:
Andrew Dolgov 2015-07-06 23:59:10 +03:00
parent f7c0d9fc8f
commit 99bb8b3bbb
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,8 @@ class Af_RedditImgur extends Plugin {
$content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0);
if ($content_link) {
if ($content_link && strpos($content_link->getAttribute("href"), "reddit.com") === FALSE) {
$tmp = fetch_file_contents($content_link->getAttribute("href"));
if ($tmp) {