[mastodon-client] Fix login with clients that leave a trailing + in the scope parameter

This commit is contained in:
Laura Hausmann 2023-11-27 23:07:19 +01:00
parent 8b41cba3e1
commit 89bc799765
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -107,7 +107,7 @@ const props = defineProps<{
lang?: string;
}>();
const _scopes = props.scope?.split(" ") ?? ['read'];
const _scopes = props.scope?.split(" ")?.filter(p => p.length > 0) ?? ['read'];
let state = $ref<string | null>(null);
let code = $ref<string | null>(null);