af_redditimgur: do not embed content of reddit links
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user