fix url not being added to modlog when deleting media

master
Aevann 2024-02-03 04:55:08 +02:00
parent c57539e3f8
commit 4d466f8163
1 changed files with 4 additions and 4 deletions

View File

@ -1930,10 +1930,10 @@ 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:
if url:
remove_media_using_link(url)
purge_files_in_cloudflare_cache(url)
for extra_url in tup:
if extra_url:
remove_media_using_link(extra_url)
purge_files_in_cloudflare_cache(extra_url)
ma = ModAction(
kind="delete_media",