From: Andrew Dolgov Date: Sat, 11 Jul 2015 10:32:28 +0000 (+0300) Subject: add a quick hack for imgur single page links X-Git-Tag: 16.3~232^2~18^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dae36971ae218f27af4b34946cf9fb9fcb490c8d;p=tt-rss.git add a quick hack for imgur single page links --- diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index fd750220..2b71a8e9 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -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');