mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 01:03:51 -05:00
Update accounts_dict when switching users
This commit is contained in:
parent
1e3cb20b2c
commit
272dd12b43
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user