same as last commit

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

View File

@ -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",