mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
empty post replies when purging
This commit is contained in:
parent
6cf59b1c3a
commit
321a95b59b
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ class User(UserMixin, db.Model):
|
|||
db.session.delete(post)
|
||||
post_replies = PostReply.query.filter_by(user_id=self.id).all()
|
||||
for reply in post_replies:
|
||||
reply.body = reply.body_html = reply.body_html_safe = ''
|
||||
reply.body = reply.body_html = ''
|
||||
db.session.commit()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue