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

Fix Imgur links not being previewed and extra extension sometimes being added #169

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

GamingGeek
Copy link
Contributor

Imgur recently changed their website so that the direct links would redirect to the main website unless the Referer header was set to https://imgur.com/

This PR adds that header if the URL contains imgur and also prevents a duplicate .png extension being added to direct links (this didn't appear to break anything, it just bugged me when I was logging the URL)

Added this when debugging the issue and i forgor to remove 💀
@Sychic Sychic merged commit 0945eeb into Sk1erLLC:master Feb 27, 2024
1 check passed
Wyvest pushed a commit to Polyfrost/PolyPatcher that referenced this pull request Mar 10, 2024
…ing added (Sk1erLLC#169)

* Fix Imgur links not previewing & extra extension being added

* Remove unused import

Added this when debugging the issue and i forgor to remove 💀
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.

2 participants