Infinity-For-Reddit
Infinity-For-Reddit copied to clipboard
Bug that causes i.redd.it gifs to not render
Checklist
- [x] I have used the search function for open and closed issues to see if someone else has already submitted the same bug report.
- [x] I will describe the problem with as much detail as possible.
- [x] If the bug only occurs with a certain link, post, image..., I will include the URL.
App version
8.3.0-beta3
Where did you get the app from
Other
Android version
15
Device model
No response
First occurred
Sometime now
Steps to reproduce
- Upload a gif as comment
- Reload and see it
Example post, link, markdown...
The cause for the issue:
https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/6b6f7bb0197bcb4cf907686e5c315dfc17da01e0/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java#L178
Here, it looks at group 2, where it actually should be looking at 5.
Changing previewReddItAndIReddItImageMatcher.group(2)
to previewReddItAndIReddItImageMatcher.group(5)
fixes the issue.
Expected behaviour
The image/gif renders as normal
Current behaviour
Image not rendered and instead displayed as i.redd.it/Image_ID.gif
Logs
No response
Thank you. Fixed. https://github.com/Docile-Alligator/Infinity-For-Reddit/commit/dd53f48bd8c08507737a68125d1cf932d890e353