empty post replies when purging

This commit is contained in:
rimu 2024-02-09 12:54:05 +13:00
parent 6cf59b1c3a
commit 321a95b59b

View file

@ -601,7 +601,7 @@ class User(UserMixin, db.Model):
db.session.delete(post) db.session.delete(post)
post_replies = PostReply.query.filter_by(user_id=self.id).all() post_replies = PostReply.query.filter_by(user_id=self.id).all()
for reply in post_replies: for reply in post_replies:
reply.body = reply.body_html = reply.body_html_safe = '' reply.body = reply.body_html = ''
db.session.commit() db.session.commit()