fix(forgejo): 🐛 ok. fixed

This commit is contained in:
May 2024-11-23 00:54:35 -08:00
parent 98b5853a34
commit 82b9b03784
Signed by: split
GPG key ID: C325C61F0BF517C0

View file

@ -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",
}