Fix permissions on oauth login.

Why is it not the same as password login?
This commit is contained in:
Jason McBrayer 2018-07-18 14:56:52 -04:00
parent c682bdd117
commit 0b69a12615
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ def oauth_callback(request):
redirect_uri = request.build_absolute_uri(reverse('oauth_callback'))
access_token = mastodon.log_in(code=code,
redirect_uri=redirect_uri,
scopes=['read', 'write', 'follow', 'push'])
scopes=['read', 'write', 'follow'])
request.session['access_token'] = access_token
user = mastodon.account_verify_credentials()
request.session['user'] = user