Infinity-For-Reddit icon indicating copy to clipboard operation
Infinity-For-Reddit copied to clipboard

Bug that causes i.redd.it gifs to not render

Open Naattukaaran opened this issue 4 months ago • 1 comments

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

  1. Upload a gif as comment
  2. 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

Naattukaaran avatar Jul 17 '26 11:07 Naattukaaran

Thank you. Fixed. https://github.com/Docile-Alligator/Infinity-For-Reddit/commit/dd53f48bd8c08507737a68125d1cf932d890e353

Docile-Alligator avatar Jul 19 '26 23:07 Docile-Alligator