From ad44a4dbc2a846d0373ab5f54eaa0f52457cccf8 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:01:28 +0800 Subject: [PATCH] reply thresholds --- app/user/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/user/forms.py b/app/user/forms.py index 76df4941..02d03ece 100644 --- a/app/user/forms.py +++ b/app/user/forms.py @@ -38,8 +38,8 @@ class SettingsForm(FlaskForm): ignore_bots = BooleanField(_l('Hide posts by bots')) nsfw = BooleanField(_l('Show NSFW posts')) nsfl = BooleanField(_l('Show NSFL posts')) - reply_collapse_threshold = IntegerField(_l('Reply collapse threshold')) - reply_hide_threshold = IntegerField(_l('Reply hide threshold')) + reply_collapse_threshold = IntegerField(_l('Reply collapse threshold'), validators=[Optional()]) + reply_hide_threshold = IntegerField(_l('Reply hide threshold'), validators=[Optional()]) markdown_editor = BooleanField(_l('Use markdown editor GUI when writing')) searchable = BooleanField(_l('Show profile in user list')) indexable = BooleanField(_l('My posts appear in search results'))