Add new settings for comment filtering
This commit is contained in:
parent
ccc4dd485f
commit
962a46ad83
2 changed files with 15 additions and 1 deletions
|
@ -87,6 +87,20 @@
|
|||
<label class="custom-control-label" for="under_attack">Under attack mode</label>
|
||||
</div>
|
||||
|
||||
<h4>Comment Filtering</h4>
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="number" class="" id="min_comments" name="min_comments" value="{{ site_settings['FilterCommentsMinComments'] }}" />
|
||||
<label for="min_comments">Minimum Comments</label>
|
||||
</div>
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="number" class="" id="min_karma" name="min_karma" value="{{ site_settings['FilterCommentsMinKarma'] }}" />
|
||||
<label for="min_karma">Minimum Karma</label>
|
||||
</div>
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="number" class="" id="min_age" name="min_age" value="{{ site_settings['FilterCommentsMinAgeDays'] }}" />
|
||||
<label for="min_age">Minimum Account Age (days)</label>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary mt-3" onclick="post_toast(this,'/admin/purge_cache');">PURGE CACHE</button>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"Bots": true, "Fart mode": false, "Read-only mode": false, "Signups": true, "FilterNewPosts": false}
|
||||
{"Bots": true, "Fart mode": false, "Read-only mode": false, "Signups": true, "FilterNewPosts": false, "FilterCommentsMinComments": 0, "FilterCommentsMinKarma": 0, "FilterCommentsMinAgeDays": 0}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue