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: filename:
(cw != "" || spoiler ? "SPOILER_" : "") + (cw != "" || spoiler ? "SPOILER_" : "") +
(attachment.type.indexOf("/") > -1 (attachment.type.indexOf("/") > -1
? attachment.type.replace("/", ".") ? attachment.type.replace("/", ".").replace("quicktime", "mov")
: attachment.type + : attachment.type +
"." + "." +
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp4")), (url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp4")),