From a68e81219fa08bc5226faa35bc1b2fd694d2276b Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Thu, 25 Sep 2025 15:14:41 -0500 Subject: [PATCH] slight change --- src/webpage/localuser.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 9937794..b5f9faf 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -3814,15 +3814,14 @@ class Localuser { const refreshes = this.urlsToRefresh; this.urlsToRefresh = []; delete this.refrshTimeOut; + const res = await fetch(this.info.api + "/attachments/refresh-urls", { + method: "POST", + body: JSON.stringify({attachment_urls: refreshes.map((_) => _[0])}), + headers: this.headers, + }); const body: { refreshed_urls: string[]; - } = await ( - await fetch(this.info.api + "/attachments/refresh-urls", { - method: "POST", - body: JSON.stringify({attachment_urls: refreshes.map((_) => _[0])}), - headers: this.headers, - }) - ).json(); + } = await res.json(); let i = 0; for (const url of body.refreshed_urls) { refreshes[i][1](url);