atagen

macltok

public
Star0
Watch0

Commit f137a3c74d11

tarball

atagen <boss@atagen.co>2026-10-24 09:44 UTC

1 file changed+4-1
media: ask for animated thumbnails

Avatars, stickers and emote reactions showed GIFs and WebPs as still frames because every thumbnail request left the spec v1.11 animated flag unset. The flag is part of the flight key, so still frames cached before this don't get served for the animated request.
Modified file: src/engine/media.rs+4 additions−1 deletions
@@ -321,8 +321,11 @@ async fn media_file(
321321 })
322322 }
323323
324+/// servers without spec v1.11 animated thumbnails ignore the flag and send a still frame
324325 fn thumbnail_format(width: u32, height: u32) -> MediaFormat {
325- MediaFormat::Thumbnail(MediaThumbnailSettings::new(width.into(), height.into()))
326+ let mut settings = MediaThumbnailSettings::new(width.into(), height.into());
327+ settings.animated = true;
328+ MediaFormat::Thumbnail(settings)
326329 }
327330
328331 fn is_local(source: &MediaSource) -> bool {