diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 2d883be..9c12ebd 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -575,7 +575,9 @@ async function processUrl(msg, url, spoiler = false) { let desc = ""; let MAX_LENGTH = 3999; if ((cw != "" || sensitive) && images.length == 0 && videos.length == 0 && audios.length == 0) { - desc += "||" + content + "||"; + const ors = content.split("||"); + desc += `||${content.replaceAll("||", "|\u200b|")}||`; + MAX_LENGTH -= ors.length - 1; MAX_LENGTH -= 4; if (cw != "") {