]> git.wh0rd.org Git - tt-rss.git/commitdiff
redditimgur: don't try to readability parse twitter
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 9 Jul 2015 09:13:44 +0000 (12:13 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 9 Jul 2015 09:13:44 +0000 (12:13 +0300)
plugins/af_redditimgur/init.php

index a9f7f1760d0730bbb3a9d0e88b3f0c1876fcbb6d..820c45d670a4db21b4ff3c89d7876b516161f11f 100644 (file)
@@ -247,7 +247,9 @@ class Af_RedditImgur extends Plugin {
 
                                $content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0);
 
-                               if ($content_link && strpos($content_link->getAttribute("href"), "reddit.com") === FALSE) {
+                               if ($content_link &&
+                                       strpos($content_link->getAttribute("href"), "twitter.com") === FALSE &&
+                                       strpos($content_link->getAttribute("href"), "reddit.com") === FALSE) {
 
                                        /* link may lead to a huge video file or whatever, we need to check content type before trying to
                                        parse it which p much requires curl */