fedimbed: upload react sooner

This commit is contained in:
Cynthia Foxwell 2023-11-29 01:47:09 -07:00
parent ce4cc0cbff
commit 3388784690
1 changed files with 7 additions and 5 deletions

View File

@ -634,6 +634,12 @@ async function processUrl(msg, url, spoiler = false) {
});
}
let sendWait = false;
if (videos.length > 0 || audios.length > 0 || images.length > 4) {
sendWait = true;
await msg.addReaction("\uD83D\uDCE4");
}
const embeds = [];
const files = [];
@ -811,11 +817,7 @@ async function processUrl(msg, url, spoiler = false) {
}
}
let sendWait = false;
if (files.length > 0) {
sendWait = true;
await msg.addReaction("\uD83D\uDCE4");
}
logger.verbose("fedimbed", `Embed count: ${embeds.length}`);
await msg.channel
.createMessage({