Merge remote-tracking branch 'origin/main'

This commit is contained in:
rimu 2024-09-21 13:23:28 +12:00
commit 69ac4f2beb

View file

@ -1681,6 +1681,8 @@ def post_reply_delete(post_id: int, comment_id: int):
post_reply.delete_dependencies()
post_reply.deleted = True
g.site.last_active = community.last_active = utcnow()
if not post_reply.author.bot:
post.reply_count -= 1
post_reply.author.post_reply_count -= 1
db.session.commit()
flash(_('Comment deleted.'))