forked from MarseyWorld/MarseyWorld
fix url not being added to modlog when deleting media
parent
c57539e3f8
commit
4d466f8163
|
@ -1930,10 +1930,10 @@ def delete_media_post(v):
|
|||
|
||||
to_delete = g.db.query(Post.thumburl, Post.posterurl).filter_by(url=url).all()
|
||||
for tup in to_delete:
|
||||
for url in tup:
|
||||
if url:
|
||||
remove_media_using_link(url)
|
||||
purge_files_in_cloudflare_cache(url)
|
||||
for extra_url in tup:
|
||||
if extra_url:
|
||||
remove_media_using_link(extra_url)
|
||||
purge_files_in_cloudflare_cache(extra_url)
|
||||
|
||||
ma = ModAction(
|
||||
kind="delete_media",
|
||||
|
|
Loading…
Reference in New Issue