add a quick hack for imgur single page links

This commit is contained in:
Andrew Dolgov 2015-07-11 13:32:28 +03:00
parent 5f297a5c11
commit dae36971ae
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class Af_RedditImgur extends Plugin {
if (!in_array($aentry->getAttribute("content"), $urls)) { if (!in_array($aentry->getAttribute("content"), $urls)) {
$img = $doc->createElement('img'); $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); $entry->parentNode->insertBefore($doc->createElement('br'), $entry);
$br = $doc->createElement('br'); $br = $doc->createElement('br');