fedimbed: move files define
This commit is contained in:
parent
4bbe1a89d2
commit
b65865b10f
1 changed files with 1 additions and 2 deletions
|
@ -635,6 +635,7 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const embeds = [];
|
const embeds = [];
|
||||||
|
const files = [];
|
||||||
|
|
||||||
if (images.length > 0) {
|
if (images.length > 0) {
|
||||||
if (images.length == 4) {
|
if (images.length == 4) {
|
||||||
|
@ -743,8 +744,6 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
embeds.push(baseEmbed);
|
embeds.push(baseEmbed);
|
||||||
}
|
}
|
||||||
|
|
||||||
const files = [];
|
|
||||||
|
|
||||||
if (videos.length > 0) {
|
if (videos.length > 0) {
|
||||||
for (const attachment of videos) {
|
for (const attachment of videos) {
|
||||||
const size = await fetch(attachment.url, {
|
const size = await fetch(attachment.url, {
|
||||||
|
|
Loading…
Reference in a new issue