From 1bb58b59adf38450fbb4d4fcbb143c93b8d4f4fc Mon Sep 17 00:00:00 2001 From: fabi Date: Mon, 29 Jun 2026 19:48:46 +0200 Subject: [PATCH] =?UTF-8?q?fix(security):=20re-review=20follow-ups=20?= =?UTF-8?q?=E2=80=94=20drop=20HEIC/HEIF,=20fix=20stale=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address the two items from the adversarial re-review of batch-2. - upload: remove image/heic + image/heif from ALLOWED_MEDIA. Neither the `image` crate nor the bundled ffmpeg 6.1 (Alpine 3.21 — HEIF demuxer only landed in ffmpeg 7.0) can decode them, so accepting them stored posts that never got a thumbnail. iOS Safari transcodes HEIC->JPEG on file-input selection, so this rejects only the rare HEIC-preserving path, now with a clear error instead of a silently broken post. - data-mode-store: correct the stale "auth-gated" comment — the /original route is intentionally unauthenticated (UUID-as-capability) so it works from plain /