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

[bugfix] Use 'Image' instead of unrecognized 'Gif' type for media attachments #801

Merged
merged 3 commits into from
Sep 4, 2022

Conversation

tsmethurst
Copy link
Contributor

We made a mistake earlier with our implementation of the media attachment api: instead of storing gifs with type Image we stored them with type Gif, which isn't part of the Mastodon API (Gifv is but that's for short looping soundless video files, not gifs). This meant that frontends like Tusky always showed gifs as unrecognized file types.

This PR corrects this behavior by:

  1. Storing and presenting new gifs as type Image
  2. Migrating already-stored Gif types to Image.

@tsmethurst
Copy link
Contributor Author

Tested this on goblin tech and it fixes the issue ^_^ Now gifs show as images normally in tusky

@tsmethurst tsmethurst merged commit 2db0c64 into main Sep 4, 2022
@tsmethurst tsmethurst deleted the store_gifs_as_image branch September 4, 2022 12:58
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.

1 participant