fedimbed: fix cw check try 3

This commit is contained in:
Cynthia Foxwell 2022-12-06 16:53:21 -07:00
parent d832c693cc
commit 4b6ebea322

View file

@ -261,7 +261,7 @@ async function processUrl(msg, url) {
let desc = ""; let desc = "";
let MAX_LENGTH = 3999; let MAX_LENGTH = 3999;
if (cw != "" && (images.length == 0 || videos.length == 0)) { if (cw != "" && (images.length == 0 && videos.length == 0 && audios.length == 0)) {
desc += "\u26a0 " + cw + "\n\n||" + content + "||"; desc += "\u26a0 " + cw + "\n\n||" + content + "||";
MAX_LENGTH -= 8 - cw.length; MAX_LENGTH -= 8 - cw.length;
} else { } else {