Also update accounts_dict on loading settings page

This commit is contained in:
Jason McBrayer 2019-07-01 13:09:28 -04:00
parent 272dd12b43
commit 4927bf137b
1 changed files with 3 additions and 0 deletions

View File

@ -714,6 +714,9 @@ def settings(request):
# Update this here because it's a handy place to do it.
user_info = mastodon.account_verify_credentials()
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)
else: