From a1b8e49209f0041cff921704fc4d5df87b5d50c1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 13 Jan 2023 02:43:38 -0500 Subject: [PATCH] remove scope hack for gotosocial --- mastodon/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/api.py b/mastodon/api.py index d7d3746f..32f89627 100644 --- a/mastodon/api.py +++ b/mastodon/api.py @@ -355,7 +355,7 @@ def get_mastodon_login_url(app, login_domain, version, request): return f"https://twitter.com/i/oauth2/authorize?response_type=code&client_id={app.client_id}&redirect_uri={quote(url)}&scope={quote(settings.TWITTER_CLIENT_SCOPE)}&state=state&code_challenge=challenge&code_challenge_method=plain" scope = ( settings.MASTODON_LEGACY_CLIENT_SCOPE - if "Pixelfed" in version or version[0:2] == "0." + if "Pixelfed" in version else settings.MASTODON_CLIENT_SCOPE ) return (