posts: fix attachements deletion

This commit is contained in:
Darks 2020-09-26 15:17:55 +02:00
parent 3b188e3bab
commit 510b57c08c
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ def delete_post(postid):
abort(403)
for a in p.attachments:
a.delete_file()
db.session.delete(a)
db.session.commit()