1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

Update accounts_dict when switching users

This commit is contained in:
Jason McBrayer 2019-07-01 13:06:06 -04:00
parent 1e3cb20b2c
commit 272dd12b43

View File

@ -256,6 +256,8 @@ def switch_accounts(request, new_account):
request.session["active_instance"] = account.client.api_base_id
account, mastodon = get_usercontext(request)
request.session["active_user"] = mastodon.account_verify_credentials()
accounts_dict[new_account]["user"] = request.session["active_user"]
request.session["accounts_dict"] = accounts_dict
return True