Add a site setting for the post filtering feature
This commit is contained in:
parent
e3ed57a29e
commit
68b10ff3f8
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue