same as last commit

master
Aevann 2023-10-17 21:20:18 +03:00
parent 92d5d15145
commit 9e334c824c
1 changed files with 3 additions and 2 deletions

View File

@ -1917,8 +1917,9 @@ def delete_media_post(v):
to_delete = g.db.query(Post.thumburl, Post.posterurl).filter_by(url=url).all()
for tup in to_delete:
for url in tup:
remove_media_using_link(url)
purge_files_in_cloudflare_cache(url)
if url:
remove_media_using_link(url)
purge_files_in_cloudflare_cache(url)
ma = ModAction(
kind="delete_media",