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,
|
description: attachment.desc,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
logger.verbose("fedimbed", `Embeds should be 0: ${embeds.length}`);
|
|
||||||
|
|
||||||
if (images.length <= 14) {
|
if (images.length <= 14) {
|
||||||
const fourteen = images.slice(10, 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) {
|
if (images.length <= 18) {
|
||||||
const eighteen = images.slice(14, 18);
|
const eighteen = images.slice(14, 18);
|
||||||
const _embed = {
|
const _embed = {
|
||||||
|
@ -748,9 +745,6 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.verbose("fedimbed", `Embeds should be 5-8: ${embeds.length}`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
embeds.push(baseEmbed);
|
embeds.push(baseEmbed);
|
||||||
|
@ -823,8 +817,6 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.verbose("fedimbed", `Embed count: ${embeds.length}`);
|
|
||||||
|
|
||||||
await msg.channel
|
await msg.channel
|
||||||
.createMessage({
|
.createMessage({
|
||||||
content:
|
content:
|
||||||
|
|
Loading…
Reference in a new issue