Fix a bug in settings page

This commit is contained in:
Jason McBrayer 2019-07-09 12:18:16 -04:00
parent 255d084d57
commit afc62c51e3

View File

@ -715,7 +715,8 @@ def settings(request):
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"]
accounts_dict[account.username]["user"] = user_info
request.session["accounts_dict"] = accounts_dict
return redirect(home)