mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 16:21:28 +00:00
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);
|
||||
|
||||
if ($content_link) {
|
||||
if ($content_link && strpos($content_link->getAttribute("href"), "reddit.com") === FALSE) {
|
||||
|
||||
$tmp = fetch_file_contents($content_link->getAttribute("href"));
|
||||
|
||||
if ($tmp) {
|
||||
|
||||
Reference in New Issue
Block a user