From dae36971ae218f27af4b34946cf9fb9fcb490c8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Jul 2015 13:32:28 +0300 Subject: [PATCH] add a quick hack for imgur single page links --- plugins/af_redditimgur/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');