diff options
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/mastodon/index.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/api/mastodon/index.ts b/src/api/mastodon/index.ts index e6a8c25..f3bf45c 100644 --- a/src/api/mastodon/index.ts +++ b/src/api/mastodon/index.ts | |||
@@ -23,7 +23,6 @@ export async function upload(buf: Buffer, filename: string) { | |||
23 | const type = await fileType.fromBuffer(buf); | 23 | const type = await fileType.fromBuffer(buf); |
24 | 24 | ||
25 | const body = new FormData(); | 25 | const body = new FormData(); |
26 | body.append("i", config.mastodon.token); | ||
27 | body.append("file", buf, { filename: `${filename}.${type.ext}`, contentType: type.mime }); | 26 | body.append("file", buf, { filename: `${filename}.${type.ext}`, contentType: type.mime }); |
28 | 27 | ||
29 | return client.post("api/v1/media", { body }).json<Attachment>(); | 28 | return client.post("api/v1/media", { body }).json<Attachment>(); |