Fix a bug in settings page
This commit is contained in:
parent
255d084d57
commit
afc62c51e3
|
@ -715,7 +715,8 @@ def settings(request):
|
||||||
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 = 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
|
request.session["accounts_dict"] = accounts_dict
|
||||||
|
|
||||||
return redirect(home)
|
return redirect(home)
|
||||||
|
|
Loading…
Reference in New Issue