forked from MarseyWorld/MarseyWorld
same as last commit
parent
901d9c77ec
commit
b853ad04f4
|
@ -1917,10 +1917,9 @@ 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.posterurl
|
if media.posterurl:
|
||||||
if posterurl:
|
remove_image_using_link(media.posterurl)
|
||||||
remove_image_using_link(posterurl[0])
|
purge_files_in_cloudflare_cache(media.posterurl)
|
||||||
purge_files_in_cloudflare_cache(posterurl[0])
|
|
||||||
|
|
||||||
ma = ModAction(
|
ma = ModAction(
|
||||||
kind="delete_media",
|
kind="delete_media",
|
||||||
|
|
Loading…
Reference in New Issue