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

Updated the way animated emojis are detected #3179

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Tomsoz125
Copy link

Discord animated emojis no longer have the extension .gif. They are now .webp with the query parameter animated=true passed to them. I've updated the copyEmojiMarkdown plugin to reflect this as it wasn't copying animated emojis correctly.

Copy link
Collaborator

@Nuckyz Nuckyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of still checking for the extension this should just check if url.pathname ends with "gif". Take a look at isGifUrl from EmoteCloner

@Tomsoz125
Copy link
Author

Tomsoz125 commented Jan 30, 2025

Instead of still checking for the extension this should just check if url.pathname ends with "gif". Take a look at isGifUrl from EmoteCloner

I checked the contents of url.path and it was /emojis/996768598938882189.webp as I mentioned above discord animated emojis are no longer gifs, in the function you mentioned it checks if it ends with .gif but it checks the path as well so there should be no issue with the method
image

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