set show_upvotes checked by default

This commit is contained in:
teddit
2022-01-31 19:21:13 +01:00
parent d71c88871c
commit 6c84bdd1e3
+1 -1
View File
@@ -98,7 +98,7 @@ html
input(type="checkbox", name="show_upvoted_percentage", id="show_upvoted_percentage")
.setting
label(for="show_upvotes") Show upvotes:
if (user_preferences.show_upvotes == 'true')
if(!user_preferences.show_upvotes || user_preferences.show_upvotes == 'true')
input(type="checkbox", name="show_upvotes", id="show_upvotes", checked="checked")
else
input(type="checkbox", name="show_upvotes", id="show_upvotes")