fix 500 error

master
Aevann 2024-10-26 17:49:08 +03:00
parent 59f293f678
commit 901d9c77ec
1 changed files with 1 additions and 1 deletions

View File

@ -1917,7 +1917,7 @@ def delete_media_post(v):
g.db.add(media) g.db.add(media)
if url.startswith(SITE_FULL_VIDEOS): if url.startswith(SITE_FULL_VIDEOS):
posterurl = media.poster_url posterurl = media.posterurl
if posterurl: if posterurl:
remove_image_using_link(posterurl[0]) remove_image_using_link(posterurl[0])
purge_files_in_cloudflare_cache(posterurl[0]) purge_files_in_cloudflare_cache(posterurl[0])