forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-24 04:52:49 +02:00
parent bf53e5fb5b
commit 2f6ea8437a
1 changed files with 0 additions and 5 deletions

View File

@ -1012,7 +1012,6 @@ def submit_post(v):
if "rdrama" in request.host or (new_post.url and not "weebzone" in request.host and not "marsey.tech" in request.host):
new_post.comment_count = 1
g.db.add(new_post)
g.db.flush()
if "rdrama" in request.host:
if v.id == 995:
@ -1031,8 +1030,6 @@ def submit_post(v):
body_html = sanitize(body_md)
print("test")
c = Comment(author_id=261,
distinguish_level=6,
parent_submission=new_post.id,
@ -1047,8 +1044,6 @@ def submit_post(v):
g.db.add(c)
g.db.flush()
print("wtf")
n = Notification(comment_id=c.id, user_id=v.id)
g.db.add(n)