From cb333b6d7ed7873c82e38171ce9d6687d5fb7f3d Mon Sep 17 00:00:00 2001 From: alien4444 Date: Sat, 7 Mar 2026 22:42:36 +0100 Subject: [PATCH 1/2] fix query for ?tool= --- src/Repository/AutoEditsRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/AutoEditsRepository.php b/src/Repository/AutoEditsRepository.php index c0a6c6968..622114745 100644 --- a/src/Repository/AutoEditsRepository.php +++ b/src/Repository/AutoEditsRepository.php @@ -352,7 +352,7 @@ public function getAutomatedEdits( AND NOT EXISTS ( SELECT 1 from $tagTable WHERE ct_rev_id = revs.rev_id - AND (ct_tag_id IN ($tagExcludesIds)) + " . ($tagExcludesIds == '' ? "" : "AND (ct_tag_id IN ($tagExcludesIds))") . " ))" : "ct_tag_id IN ($tagIds)"; } From bb260f0a5e1d477a502cb6041dd8ed06d944ee80 Mon Sep 17 00:00:00 2001 From: alien4444 Date: Sat, 7 Mar 2026 22:58:29 +0100 Subject: [PATCH 2/2] lint --- src/Repository/AutoEditsRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/AutoEditsRepository.php b/src/Repository/AutoEditsRepository.php index 622114745..2e5f407bc 100644 --- a/src/Repository/AutoEditsRepository.php +++ b/src/Repository/AutoEditsRepository.php @@ -352,7 +352,7 @@ public function getAutomatedEdits( AND NOT EXISTS ( SELECT 1 from $tagTable WHERE ct_rev_id = revs.rev_id - " . ($tagExcludesIds == '' ? "" : "AND (ct_tag_id IN ($tagExcludesIds))") . " + " . ( $tagExcludesIds == '' ? "" : "AND (ct_tag_id IN ($tagExcludesIds))" ) . " ))" : "ct_tag_id IN ($tagIds)"; }