mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 09:10:08 -05:00
Fix crash in oauth_callback
This commit is contained in:
parent
2612f09bbb
commit
7f86e79b25
@ -198,7 +198,7 @@ def oauth_callback(request):
|
||||
request.session['access_token'] = access_token
|
||||
user = mastodon.account_verify_credentials()
|
||||
try:
|
||||
account = Account.objects.get(username=user.username, client_id=client.id)
|
||||
account = Account.objects.get(username=user.username)
|
||||
account.access_token = access_token
|
||||
account.save()
|
||||
except (Account.DoesNotExist, Account.MultipleObjectsReturned):
|
||||
|
Loading…
Reference in New Issue
Block a user