Skip to content

fix: Make animated WebP emotes properly animate #1126

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

solunareclipse1
Copy link

Please make sure to check the following tasks before opening and submitting a PR

  • I understand and have followed the contribution guide
  • I have tested my changes locally and they are working as intended
  • These changes do not have any notable side effects on other Revolt projects
  • (optional) I have opened a pull request on the translation repository
  • I have included screenshots to demonstrate my changes

Changes to Autumn several months ago created an issue where Revite will pull image previews for emotes instead of the emote image itself. This is fine for static emotes, but it causes issues specifically with animated WebP emotes (and perhaps static WebP emotes as well, though I haven't tested).

This PR fixes that by changing the URL used to fetch emotes, suffixing it with /original. This bypasses the image preview entirely and fetches the real emote image data.

An example of a broken emote with the current code (ID 01HY26VF5KMGAVMK14HPRDPWDT):
image

The same emote, now animating properly:
image

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

Successfully merging this pull request may close these issues.

1 participant