From ba7a050220c64196ab855389a5671e9d3dbd41b7 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 24 Aug 2024 10:06:26 -0600 Subject: [PATCH] fedimbed: consistency with other command output for links --- src/modules/fedimbed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 9c12ebd..e0b0b3b 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -621,7 +621,7 @@ async function processUrl(msg, url, spoiler = false) { }; if (images.length > 0) { if (images.length > 1) { - const links = images.map((attachment, index) => `[Image ${index + 1}](${attachment.url})`).join(" | "); + const links = images.map((attachment, index) => `[Image ${index + 1}](${attachment.url})`).join("\u3000\u3000"); if (links.length <= 1024) baseEmbed.fields.push({ @@ -641,7 +641,7 @@ async function processUrl(msg, url, spoiler = false) { if (videos.length > 1) { baseEmbed.fields.push({ name: "Videos", - value: videos.map((attachment, index) => `[Video ${index + 1}](${attachment.url})`).join(" | "), + value: videos.map((attachment, index) => `[Video ${index + 1}](${attachment.url})`).join("\u3000\u3000"), inline: true, }); } else { @@ -656,7 +656,7 @@ async function processUrl(msg, url, spoiler = false) { if (audios.length > 1) { baseEmbed.fields.push({ name: "Audios", - value: audios.map((attachment, index) => `[Audio ${index + 1}](${attachment.url})`).join(" | "), + value: audios.map((attachment, index) => `[Audio ${index + 1}](${attachment.url})`).join("\u3000\u3000"), inline: true, }); } else {