diff --git a/files/routes/admin.py b/files/routes/admin.py index c65b8fe4b..daf534bfc 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1917,10 +1917,9 @@ def delete_media_post(v): g.db.add(media) if url.startswith(SITE_FULL_VIDEOS): - posterurl = media.posterurl - if posterurl: - remove_image_using_link(posterurl[0]) - purge_files_in_cloudflare_cache(posterurl[0]) + if media.posterurl: + remove_image_using_link(media.posterurl) + purge_files_in_cloudflare_cache(media.posterurl) ma = ModAction( kind="delete_media",