fedimbed: forgot separator
This commit is contained in:
parent
a5dfd6395a
commit
58fc6bb98e
1 changed files with 3 additions and 0 deletions
|
@ -226,6 +226,7 @@ async function processUrl(msg, url) {
|
|||
attachment.pleroma?.mime_type ?? attachment.type.indexOf("/") > -1
|
||||
? attachment.type
|
||||
: attachment.type +
|
||||
"/" +
|
||||
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ??
|
||||
attachment.type == "image"
|
||||
? "png"
|
||||
|
@ -469,6 +470,7 @@ async function processUrl(msg, url) {
|
|||
attachment.type.indexOf("/") > -1
|
||||
? attachment.type.replace("/", ".")
|
||||
: attachment.type +
|
||||
"." +
|
||||
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp4"),
|
||||
contents: file,
|
||||
});
|
||||
|
@ -504,6 +506,7 @@ async function processUrl(msg, url) {
|
|||
.replace("vnd.wave", "wav")
|
||||
.replace("x-wav", "wav")
|
||||
: attachment.type +
|
||||
"." +
|
||||
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp3"),
|
||||
contents: file,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue