-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed duplicate enclosure images #265
fixed duplicate enclosure images #265
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me
$newSrc = self::getProxyImageUri($img->getAttribute('src')); | ||
$src = $img->getAttribute('src'); | ||
$newSrc = self::getProxyImageUri($src); | ||
$img->setAttribute('data-xextension-imageproxy-original-src', $src); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might warrant a comment, or in any case preventing a double image from rendering isn't quite what I'd expect that to be doing.
A bit of publicity for #202 if anyone is motivated. |
Hi, this is a fix for #206. FreshRSS has a check for duplicate urls. By adding a custom data attribute to the image FreshRSS won't render it again.