summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-09-25 20:59:32 +0200
committerMar0xy <marie@kaifa.ch>2023-09-25 20:59:32 +0200
commit1e02899de7430243cb2fd8ff0f3ed3fcd7a3b794 (patch)
tree4117372b4db1c5558a8f48c08967eca7324cb56b /packages/backend/src/server/api
parentfix: checks (diff)
downloadsharkey-1e02899de7430243cb2fd8ff0f3ed3fcd7a3b794.tar.gz
sharkey-1e02899de7430243cb2fd8ff0f3ed3fcd7a3b794.tar.bz2
sharkey-1e02899de7430243cb2fd8ff0f3ed3fcd7a3b794.zip
upd: add multer handler to update_credentials
Diffstat (limited to 'packages/backend/src/server/api')
-rw-r--r--packages/backend/src/server/api/mastodon/MastodonApiServerService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts
index 0878faf898..3f1af0cf5f 100644
--- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts
+++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts
@@ -236,7 +236,7 @@ export class MastodonApiServerService {
}
});
- fastify.patch('/v1/accounts/update_credentials', async (_request, reply) => {
+ fastify.patch('/v1/accounts/update_credentials', { preHandler: upload.none() }, async (_request, reply) => {
const BASE_URL = `${_request.protocol}://${_request.hostname}`;
const accessTokens = _request.headers.authorization;
const client = getClient(BASE_URL, accessTokens); // we are using this here, because in private mode some info isnt