# v2.20.1: Moving pictures in reply contexts ## Why The reply https://starpunk.thesatelliteoflove.com/note/20261114032356 answers an infosec.exchange post with a GIF, but the card showed a still. Mastodon converts uploaded GIFs to a silent looping MP4 (`media_attachments[].type == "gifv"`, here 320×240, 5.3 s, ~140 KB). Its `preview_url` is a PNG of the first frame, which is all v2.19.0 kept. ## Changes | Area | Change | |---|---| | `reply_context._from_status` | A `gifv` attachment's `url` goes into the new `video` field (the preview stays in `photo`, used as the poster) | | Migration 025 | `reply_contexts.video`; fediverse rows with a photo get `source = NULL`, so the worker's `refresh_stale` fetches them once more | | `avatars.fetch_video` | Saves the MP4 as `DATA_PATH/previews/.mp4` (8 MB cap, must have an `ftyp` box); `fill_missing`/`remove_unused` cover it | | `avatars._save` | Animated GIF/WebP/PNG previews are saved as animated WebP (frames narrowed to 640 px, at most 300 frames) instead of their first frame | | `/previews/` | Also serves `.mp4` as `video/mp4` | | Template | `