fix(forgejo): 🐛 ok. fixed
This commit is contained in:
parent
98b5853a34
commit
82b9b03784
|
@ -29,9 +29,9 @@ export default translator({
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
image: `data:${avatar.type};base64,${Buffer.from(
|
image: Buffer.from(await avatar.arrayBuffer()).toString(
|
||||||
await avatar.arrayBuffer()
|
"base64"
|
||||||
).toString("base64")}`,
|
),
|
||||||
}),
|
}),
|
||||||
method: "POST",
|
method: "POST",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue