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

Downloading avatars that have full version removed will fail; DHT will not download small avatar image #254

Open
Acters opened this issue Feb 29, 2024 · 0 comments

Comments

@Acters
Copy link

Acters commented Feb 29, 2024

Low Priority issue

Discord History Tracker will try to download full version avatars of the users in chats. However, there is an edge case where the user changes their Profile Picture avatar and the discord client has their old avatar cached in the chat. This will cause DHT to fail to download the avatar of the user as the small chat avatar is still accessible by appending ?size=96

https://cdn.discordapp.com/avatars/{USERID}/{IMAGEID}.webp?size=96

Alongside this issue, modifying download_url in the download_metadata table to append ?size=96 will cause DHT to place the download in pending indefinitely. Closing DHT and reopening the database will show download_url has lost the ?size=96 parameter. Strangely enough it is forever in pending. The status code for the url will be 0, changing this to 404 to cause discord to place it in the failed downloads for us to retry will still not work.

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

No branches or pull requests

1 participant