fedimbed: fix cw check

This commit is contained in:
Cynthia Foxwell 2022-12-06 16:49:49 -07:00
parent fe37faedc0
commit c6dfacff10

View file

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