From fbeadc1d4982d50aa8a5c222507cc1e5e3af2335 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Fri, 16 Jul 2021 12:41:51 +0100 Subject: [PATCH] [StoreRemoteMedia][SCRIPTS] Fix typo in query This was introduced in 11ebb98919f56f7dcf888adfbebf9e8826f995b4#diff-96141878409d7418ea5a9eefbde509b43482c01R70 The arg number should have been one, as there's only one... --- plugins/StoreRemoteMedia/scripts/deleteRemoteMedia.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/StoreRemoteMedia/scripts/deleteRemoteMedia.php b/plugins/StoreRemoteMedia/scripts/deleteRemoteMedia.php index 138df1af13..ff59f059a7 100755 --- a/plugins/StoreRemoteMedia/scripts/deleteRemoteMedia.php +++ b/plugins/StoreRemoteMedia/scripts/deleteRemoteMedia.php @@ -62,7 +62,7 @@ $fn->query(sprintf( FROM file_to_post INNER JOIN file ON file_to_post.file_id = file.id INNER JOIN notice ON file_to_post.post_id = notice.id - WHERE notice.is_local = 0 AND notice.modified <= '%3$s' + WHERE notice.is_local = 0 AND notice.modified <= '%1$s' GROUP BY file_to_post.file_id ORDER BY MAX(notice.modified) END,