fedimbed: upload react sooner
This commit is contained in:
parent
ce4cc0cbff
commit
3388784690
1 changed files with 7 additions and 5 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue