This commit is contained in:
Aevann1 2021-11-30 01:07:57 +02:00
parent 54a5727975
commit 5c8759f97a
3 changed files with 8 additions and 10 deletions

View file

@ -999,10 +999,10 @@ def submit_post(v):
g.db.flush()
n = Notification(comment_id=c.id, user_id=v.id)
g.db.add(n)
g.db.flush()
if not v.is_blocking(snappy):
n = Notification(comment_id=c.id, user_id=v.id)
g.db.add(n)
g.db.flush()
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)