This commit is contained in:
Aevann1 2021-09-23 21:16:44 +02:00
parent 10f2639ce9
commit bb084df85b
13 changed files with 84 additions and 145 deletions

View file

@ -169,7 +169,7 @@ def settings_profile_post(v):
defaultsortingcomments = request.values.get("defaultsortingcomments")
if defaultsortingcomments:
if defaultsortingcomments in ["new", "old", "controversial", "top", "bottom", "random"]:
if defaultsortingcomments in ["new", "old", "controversial", "top", "bottom"]:
v.defaultsortingcomments = defaultsortingcomments
updated = True
else:
@ -177,7 +177,7 @@ def settings_profile_post(v):
defaultsorting = request.values.get("defaultsorting")
if defaultsorting:
if defaultsorting in ["hot", "new", "old", "comments", "controversial", "top", "bottom", "random"]:
if defaultsorting in ["hot", "new", "old", "comments", "controversial", "top", "bottom"]:
v.defaultsorting = defaultsorting
updated = True
else: