mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2025-01-03 14:56:25 -05:00
Also update accounts_dict on loading settings page
This commit is contained in:
parent
272dd12b43
commit
4927bf137b
@ -714,6 +714,9 @@ def settings(request):
|
|||||||
# Update this here because it's a handy place to do it.
|
# Update this here because it's a handy place to do it.
|
||||||
user_info = mastodon.account_verify_credentials()
|
user_info = mastodon.account_verify_credentials()
|
||||||
request.session["active_user"] = user_info
|
request.session["active_user"] = user_info
|
||||||
|
accounts_dict = request.session["accounts_dict"]
|
||||||
|
accounts_dict[new_account]["user"] = request.session["active_user"]
|
||||||
|
request.session["accounts_dict"] = accounts_dict
|
||||||
|
|
||||||
return redirect(home)
|
return redirect(home)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user