fedimbed: upload react sooner

This commit is contained in:
Cynthia Foxwell 2023-11-29 01:47:09 -07:00
parent ce4cc0cbff
commit 3388784690

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