fedimbed: fix cw check try 2

This commit is contained in:
Cynthia Foxwell 2022-12-06 16:51:30 -07:00
parent c6dfacff10
commit d832c693cc

View file

@ -427,7 +427,7 @@ async function processUrl(msg, url) {
.catch(() => {}); .catch(() => {});
await msg.channel.createMessage({ await msg.channel.createMessage({
content: cw && images.length > 0 && videos.length > 0 && audios.length ? `:warning: ${cw} || ${url} ||` : "", content: cw && (images.length > 0 || videos.length > 0 || audios.length > 0) ? `:warning: ${cw} || ${url} ||` : "",
embeds, embeds,
files, files,
allowedMentions: { allowedMentions: {