From 58fc6bb98e428787096a3b2ff41a1298586a62f7 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Fri, 6 Jan 2023 11:23:22 -0700 Subject: [PATCH] fedimbed: forgot separator --- src/modules/fedimbed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 7d20d7f..fa2c11b 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -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, });