mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
69ac4f2beb
1 changed files with 2 additions and 0 deletions
|
@ -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.'))
|
||||
|
|
Loading…
Add table
Reference in a new issue