summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-10-18 07:33:47 +0200
committerVolpeon <git@volpeon.ink>2021-10-18 07:33:47 +0200
commit70a06dc18927d0c8e654e0a8cb984478e439c4d4 (patch)
tree9fe79acb2b445ce2ca2639b466d292afe6ce4b66
parentDon't post as sensitive unless there's a spoiler defined (diff)
downloadferalbot-70a06dc18927d0c8e654e0a8cb984478e439c4d4.tar.gz
feralbot-70a06dc18927d0c8e654e0a8cb984478e439c4d4.tar.bz2
feralbot-70a06dc18927d0c8e654e0a8cb984478e439c4d4.zip
Remove remnant of Misskey API code from Mastodon API code
-rw-r--r--src/api/mastodon/index.ts1
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>();