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:
parent
1e3cb20b2c
commit
272dd12b43
@ -256,6 +256,8 @@ def switch_accounts(request, new_account):
|
|||||||
request.session["active_instance"] = account.client.api_base_id
|
request.session["active_instance"] = account.client.api_base_id
|
||||||
account, mastodon = get_usercontext(request)
|
account, mastodon = get_usercontext(request)
|
||||||
request.session["active_user"] = mastodon.account_verify_credentials()
|
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
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user