From 487e397810f96b28a1af405f728272c836f59338 Mon Sep 17 00:00:00 2001
From: Mar0xy <marie@kaifa.ch>
Date: Sun, 24 Sep 2023 21:33:16 +0200
Subject: [PATCH] upd: also split by +

---
 packages/backend/src/server/api/mastodon/endpoints/auth.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/backend/src/server/api/mastodon/endpoints/auth.ts b/packages/backend/src/server/api/mastodon/endpoints/auth.ts
index 3eb92644bc..80a5e89ca3 100644
--- a/packages/backend/src/server/api/mastodon/endpoints/auth.ts
+++ b/packages/backend/src/server/api/mastodon/endpoints/auth.ts
@@ -43,7 +43,7 @@ export async function ApiAuthMastodon(request: FastifyRequest, client: Megalodon
 	const body: any = request.body || request.query;
 	try {
 		let scope = body.scopes;
-		if (typeof scope === 'string') scope = scope.split(' ');
+		if (typeof scope === 'string') scope = scope.split(' ') || scope.split('+');
 		const pushScope = new Set<string>();
 		for (const s of scope) {
 			if (s.match(/^read/)) for (const r of readScope) pushScope.add(r);