posts: fix attachements deletion
This commit is contained in:
parent
3b188e3bab
commit
510b57c08c
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue