]> git.wh0rd.org Git - tt-rss.git/commitdiff
add a quick hack for imgur single page links
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 11 Jul 2015 10:32:28 +0000 (13:32 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 11 Jul 2015 10:32:28 +0000 (13:32 +0300)
plugins/af_redditimgur/init.php

index fd75022034d91742aa98c11fc8c4ec0af78bc636..2b71a8e9dbe7200fa6966ecc9b29eeb5739494dc 100644 (file)
@@ -190,7 +190,7 @@ class Af_RedditImgur extends Plugin {
 
                                                                if (!in_array($aentry->getAttribute("content"), $urls)) {
                                                                        $img = $doc->createElement('img');
-                                                                       $img->setAttribute("src", $aentry->getAttribute("content"));
+                                                                       $img->setAttribute("src", str_replace("?fb", "", $aentry->getAttribute("content")));
                                                                        $entry->parentNode->insertBefore($doc->createElement('br'), $entry);
 
                                                                        $br = $doc->createElement('br');