same as last commit

master
Aevann 2024-10-26 17:49:40 +03:00
parent b853ad04f4
commit fa2f2d6bc4
1 changed files with 3 additions and 4 deletions

View File

@ -1916,10 +1916,9 @@ def delete_media_post(v):
media.purged_utc = time.time() media.purged_utc = time.time()
g.db.add(media) g.db.add(media)
if url.startswith(SITE_FULL_VIDEOS): if media.posterurl:
if media.posterurl: remove_image_using_link(media.posterurl)
remove_image_using_link(media.posterurl) purge_files_in_cloudflare_cache(media.posterurl)
purge_files_in_cloudflare_cache(media.posterurl)
ma = ModAction( ma = ModAction(
kind="delete_media", kind="delete_media",