Skip to content
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

Handle Reddit galleries with links, and show thumbnails for small images in Reddit galleries #1103

Merged

Conversation

Cguy7777
Copy link
Contributor

This PR has three small improvements for galleries.

First, Reddit galleries containing links can now be opened, which was not working because Reddit put the first outbound link in the gallery as the url. I fixed this by using url_overridden_by_dest instead if it's present, which does not seem to effect anything else. (#1061)

Second, links in Reddit galleries can now be seen and used, in the form of link buttons (regardless of if they are enabled for comments). I experimented with also having the link present alongside the image's title, dimensions, size, and caption, but the buttons seem sufficient to me. I considered an option to disable the link buttons here, but Reddit galleries with links seem to be relatively rare, so I doubt it's necessary.

Third, thumbnails for small images in Reddit galleries are now shown by downloading the original image. They were not displaying before, because Reddit does not seem to generate gallery thumbnails for images smaller than 108x108.

Closes #1061.

@mattdbr
Copy link
Contributor

mattdbr commented Sep 9, 2023

Think this one may also address the link issues seen in #1115

@QuantumBadger
Copy link
Owner

Thanks @Cguy7777!

There seems to be a bug where more link buttons keep getting added to each list entry when scrolling -- I guess the buttons aren't being removed when the items are recycled. I'll put in a fix for this now.

@QuantumBadger QuantumBadger merged commit befddf4 into QuantumBadger:master Sep 23, 2023
1 of 3 checks passed
QuantumBadger added a commit that referenced this pull request Sep 23, 2023
@QuantumBadger
Copy link
Owner

All sorted now :) Merged and changelog updated, thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to view reddit galleries that include links
3 participants