Rejigger the Mod/Report state system.
This commit is contained in:
parent
31ebdd0213
commit
ccf809406e
36 changed files with 492 additions and 226 deletions
|
@ -3,6 +3,7 @@ from flask import g
|
|||
|
||||
from .sanitize import *
|
||||
from .config.const import *
|
||||
from files.classes.visstate import StateMod
|
||||
|
||||
def create_comment(text_html, autojanny=False):
|
||||
if autojanny: author_id = AUTOJANNY_ID
|
||||
|
@ -11,7 +12,8 @@ def create_comment(text_html, autojanny=False):
|
|||
new_comment = Comment(author_id=author_id,
|
||||
parent_submission=None,
|
||||
body_html=text_html,
|
||||
distinguish_level=6)
|
||||
distinguish_level=6,
|
||||
state_mod=StateMod.VISIBLE,)
|
||||
g.db.add(new_comment)
|
||||
g.db.flush()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue