[StoreRemoteMedia] script removeRemoteMedia.php was trying to remove already removed files

Sometimes different posts are associated with the same file, that case wasn't considered
Thanks to XRevan86 for spotting this issue.
This commit is contained in:
Diogo Cordeiro 2019-04-18 01:03:09 +01:00
parent 98ebe1f63b
commit 2d20656e22

View File

@ -61,7 +61,7 @@ if (empty($max_date)) {
} }
$query = " $query = "
SELECT SELECT DISTINCT
file_to_post.file_id file_to_post.file_id
FROM FROM
file_to_post file_to_post