Skip to content
Snippets Groups Projects
Verified Commit 487e3978 authored by Mar0xy's avatar Mar0xy
Browse files

upd: also split by +

parent 58988c2b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment