From 3ed3592e529551e0a9742f936c8695f1cd908ea0 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 22 Jan 2026 23:17:32 -0300 Subject: [PATCH] blossom: ensure quicktime-format videos get the extension ".mov", not ".moov". --- nipb0/blossom/utils.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nipb0/blossom/utils.go b/nipb0/blossom/utils.go index 800fb88..f8b52b8 100644 --- a/nipb0/blossom/utils.go +++ b/nipb0/blossom/utils.go @@ -1,6 +1,8 @@ package blossom -import "mime" +import ( + "mime" +) func GetExtension(mimetype string) string { if mimetype == "" { @@ -24,6 +26,9 @@ func GetExtension(mimetype string) string { exts, _ := mime.ExtensionsByType(mimetype) if len(exts) > 0 { + if exts[0] == ".moov" { + return ".mov" + } return exts[0] }