This commit is contained in:
Aevann1 2022-04-03 22:16:54 +02:00
parent 022c36799e
commit a552455ea1
4 changed files with 5 additions and 4 deletions

View file

@ -1281,8 +1281,9 @@ def submit_post(v, sub=None):
if body.startswith('!slots1000'):
check_for_slots_command(body, snappy, c)
g.db.flush()
post.comment_count += 1
if len(body_html) < 40000: post.replies = [c]
post.replies = [c]
v.post_count = g.db.query(Submission.id).filter_by(author_id=v.id, is_banned=False, deleted_utc=0).count()
g.db.add(v)