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.pleroma?.mime_type ?? attachment.type.indexOf("/") > -1
|
||||||
? attachment.type
|
? attachment.type
|
||||||
: attachment.type +
|
: attachment.type +
|
||||||
|
"/" +
|
||||||
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ??
|
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ??
|
||||||
attachment.type == "image"
|
attachment.type == "image"
|
||||||
? "png"
|
? "png"
|
||||||
|
@ -469,6 +470,7 @@ async function processUrl(msg, url) {
|
||||||
attachment.type.indexOf("/") > -1
|
attachment.type.indexOf("/") > -1
|
||||||
? attachment.type.replace("/", ".")
|
? attachment.type.replace("/", ".")
|
||||||
: attachment.type +
|
: attachment.type +
|
||||||
|
"." +
|
||||||
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp4"),
|
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp4"),
|
||||||
contents: file,
|
contents: file,
|
||||||
});
|
});
|
||||||
|
@ -504,6 +506,7 @@ async function processUrl(msg, url) {
|
||||||
.replace("vnd.wave", "wav")
|
.replace("vnd.wave", "wav")
|
||||||
.replace("x-wav", "wav")
|
.replace("x-wav", "wav")
|
||||||
: attachment.type +
|
: attachment.type +
|
||||||
|
"." +
|
||||||
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp3"),
|
(url.match(/\.([a-z0-9]{3,4})$/)?.[0] ?? "mp3"),
|
||||||
contents: file,
|
contents: file,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue