forked from MarseyWorld/MarseyWorld
sneed
parent
233d426257
commit
916f7dfb36
|
@ -207,11 +207,17 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
c_jannied = Comment(author_id=2317,
|
c_jannied = Comment(author_id=2317,
|
||||||
parent_submission=p.id,
|
parent_submission=p.id,
|
||||||
is_pinned=True,
|
parent_fullname=p.fullname,
|
||||||
distinguish_level=6,
|
|
||||||
level=1,
|
level=1,
|
||||||
|
over_18=False,
|
||||||
|
is_nsfl=False,
|
||||||
|
is_offensive=False,
|
||||||
original_board_id=1,
|
original_board_id=1,
|
||||||
is_bot=True,
|
is_bot=True,
|
||||||
|
app_id=None,
|
||||||
|
creation_region=request.headers.get("cf-ipcountry"),
|
||||||
|
is_pinned=True,
|
||||||
|
distinguish_level=6
|
||||||
)
|
)
|
||||||
|
|
||||||
g.db.add(c_jannied)
|
g.db.add(c_jannied)
|
||||||
|
@ -950,12 +956,18 @@ def submit_post(v):
|
||||||
|
|
||||||
c_jannied = Comment(author_id=2317,
|
c_jannied = Comment(author_id=2317,
|
||||||
parent_submission=new_post.id,
|
parent_submission=new_post.id,
|
||||||
is_pinned=True,
|
parent_fullname=new_post.fullname,
|
||||||
distinguish_level=6,
|
|
||||||
level=1,
|
level=1,
|
||||||
|
over_18=False,
|
||||||
|
is_nsfl=False,
|
||||||
|
is_offensive=False,
|
||||||
original_board_id=1,
|
original_board_id=1,
|
||||||
is_bot=True,
|
is_bot=True,
|
||||||
)
|
app_id=None,
|
||||||
|
creation_region=request.headers.get("cf-ipcountry"),
|
||||||
|
is_pinned=True,
|
||||||
|
distinguish_level=6
|
||||||
|
)
|
||||||
|
|
||||||
g.db.add(c_jannied)
|
g.db.add(c_jannied)
|
||||||
g.db.flush()
|
g.db.flush()
|
||||||
|
|
Loading…
Reference in New Issue