mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-13 20:11:07 +02:00
Sometimes imgur links has ?1 in the url
This commit is contained in:
parent
9875d71792
commit
7adf95562d
@ -78,7 +78,7 @@ class Af_RedditImgur extends Plugin {
|
||||
}
|
||||
}
|
||||
|
||||
if (preg_match("/\.(jpg|jpeg|gif|png)$/i", $entry->getAttribute("href"))) {
|
||||
if (preg_match("/\.(jpg|jpeg|gif|png)(\?[0-9])?$/i", $entry->getAttribute("href"))) {
|
||||
|
||||
$img = $doc->createElement('img');
|
||||
$img->setAttribute("src", $entry->getAttribute("href"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user