From 70a06dc18927d0c8e654e0a8cb984478e439c4d4 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 18 Oct 2021 07:33:47 +0200 Subject: Remove remnant of Misskey API code from Mastodon API code --- src/api/mastodon/index.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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) { const type = await fileType.fromBuffer(buf); const body = new FormData(); - body.append("i", config.mastodon.token); body.append("file", buf, { filename: `${filename}.${type.ext}`, contentType: type.mime }); return client.post("api/v1/media", { body }).json(); -- cgit v1.2.3-70-g09d2