From fa2f2d6bc4ee1105e3a452cab2831a485da8c3bf Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 26 Oct 2024 17:49:40 +0300 Subject: [PATCH] same as last commit --- files/routes/admin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index daf534bfc..1da249ce3 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1916,10 +1916,9 @@ def delete_media_post(v): media.purged_utc = time.time() g.db.add(media) - if url.startswith(SITE_FULL_VIDEOS): - if media.posterurl: - remove_image_using_link(media.posterurl) - purge_files_in_cloudflare_cache(media.posterurl) + if media.posterurl: + remove_image_using_link(media.posterurl) + purge_files_in_cloudflare_cache(media.posterurl) ma = ModAction( kind="delete_media",