summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-09 12:13:44 +0300
committerAndrew Dolgov <[email protected]>2015-07-09 12:13:44 +0300
commit12d880d77a166e87aebe49b17e0247c06cec6024 (patch)
treeb91a335ef4da31334138d611123f601585ce436d /plugins
parent47888b3d87bc2399cb9fc23c595630e7bba801df (diff)
redditimgur: don't try to readability parse twitter
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_redditimgur/init.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php
index a9f7f1760..820c45d67 100644
--- a/plugins/af_redditimgur/init.php
+++ b/plugins/af_redditimgur/init.php
@@ -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 */