From 82b9b037849c0896d7ae32d080572d63e8384f49 Mon Sep 17 00:00:00 2001 From: split Date: Sat, 23 Nov 2024 00:54:35 -0800 Subject: [PATCH] fix(forgejo): :bug: ok. fixed --- src/translators/forgejo.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/translators/forgejo.ts b/src/translators/forgejo.ts index 08a74fc..0d56a46 100644 --- a/src/translators/forgejo.ts +++ b/src/translators/forgejo.ts @@ -29,9 +29,9 @@ export default translator({ "Content-Type": "application/json", }, body: JSON.stringify({ - image: `data:${avatar.type};base64,${Buffer.from( - await avatar.arrayBuffer() - ).toString("base64")}`, + image: Buffer.from(await avatar.arrayBuffer()).toString( + "base64" + ), }), method: "POST", }