af_redditimgur: do not embed content of reddit links
This commit is contained in:
parent
f7c0d9fc8f
commit
99bb8b3bbb
|
@ -259,7 +259,8 @@ class Af_RedditImgur extends Plugin {
|
||||||
|
|
||||||
$content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0);
|
$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"));
|
$tmp = fetch_file_contents($content_link->getAttribute("href"));
|
||||||
|
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
|
|
Loading…
Reference in New Issue