fedimbed: fix mov files
This commit is contained in:
parent
480228a417
commit
cf736d79da
1 changed files with 1 additions and 1 deletions
|
@ -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")),
|
||||||
|
|
Loading…
Reference in a new issue