fedimbed: debug time
This commit is contained in:
parent
3388784690
commit
c7f16cf501
1 changed files with 6 additions and 0 deletions
|
@ -717,6 +717,8 @@ async function processUrl(msg, url, spoiler = false) {
|
|||
});
|
||||
}
|
||||
|
||||
logger.verbose("fedimbed", `Embeds should be 0: ${embeds.length}`);
|
||||
|
||||
if (images.length <= 14) {
|
||||
const fourteen = images.slice(10, 14);
|
||||
|
||||
|
@ -729,6 +731,8 @@ 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 = {
|
||||
|
@ -744,6 +748,8 @@ async function processUrl(msg, url, spoiler = false) {
|
|||
embeds.push(embed);
|
||||
}
|
||||
}
|
||||
|
||||
logger.verbose("fedimbed", `Embeds should be 5-8: ${embeds.length}`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue