Add a site setting for the post filtering feature

This commit is contained in:
Julian Rota 2022-05-24 00:13:33 -04:00
parent e3ed57a29e
commit 68b10ff3f8
3 changed files with 7 additions and 2 deletions

View file

@ -969,7 +969,7 @@ def submit_post(v, sub=None):
title_html=title_html,
sub=sub,
ghost=False,
filter_state='filtered' if v.admin_level == 0 else 'normal'
filter_state='filtered' if v.admin_level == 0 and app.config['SETTINGS']['FilterNewPosts'] else 'normal'
)
g.db.add(post)