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 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({
|
||||||
|
|
Loading…
Reference in a new issue