fedimbed: indentation moment
This commit is contained in:
parent
c7f16cf501
commit
c031f23a53
1 changed files with 23 additions and 31 deletions
|
@ -716,8 +716,7 @@ async function processUrl(msg, url, spoiler = false) {
|
|||
description: attachment.desc,
|
||||
});
|
||||
}
|
||||
|
||||
logger.verbose("fedimbed", `Embeds should be 0: ${embeds.length}`);
|
||||
}
|
||||
|
||||
if (images.length <= 14) {
|
||||
const fourteen = images.slice(10, 14);
|
||||
|
@ -731,8 +730,6 @@ async function processUrl(msg, url, spoiler = false) {
|
|||
}
|
||||
}
|
||||
|
||||
logger.verbose("fedimbed", `Embeds should be 1-4: ${embeds.length}`);
|
||||
|
||||
if (images.length <= 18) {
|
||||
const eighteen = images.slice(14, 18);
|
||||
const _embed = {
|
||||
|
@ -748,9 +745,6 @@ async function processUrl(msg, url, spoiler = false) {
|
|||
embeds.push(embed);
|
||||
}
|
||||
}
|
||||
|
||||
logger.verbose("fedimbed", `Embeds should be 5-8: ${embeds.length}`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
embeds.push(baseEmbed);
|
||||
|
@ -823,8 +817,6 @@ async function processUrl(msg, url, spoiler = false) {
|
|||
}
|
||||
}
|
||||
|
||||
logger.verbose("fedimbed", `Embed count: ${embeds.length}`);
|
||||
|
||||
await msg.channel
|
||||
.createMessage({
|
||||
content:
|
||||
|
|
Loading…
Reference in a new issue