fedimbed: fix mov files

This commit is contained in:
Cynthia Foxwell 2023-12-06 22:36:00 -07:00
parent 480228a417
commit cf736d79da
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ async function processUrl(msg, url, spoiler = false) {
filename:
(cw != "" || spoiler ? "SPOILER_" : "") +
(attachment.type.indexOf("/") > -1
? attachment.type.replace("/", ".")
? attachment.type.replace("/", ".").replace("quicktime", "mov")
: attachment.type +
"." +
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp4")),