From 070cd3a605637f1c0d3d316755c3bfe5c95591b2 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 2 Sep 2026 14:28:29 -0700 Subject: [PATCH] fix(tags): broken tag deletion on user delete There's a typo here. It's getting tagIds but then trying to use it as a uid. This causes hard failures. Signed-off-by: Varun Patil --- lib/private/TagManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/TagManager.php b/lib/private/TagManager.php index dacdfbe4d32ce..84e7c7604ce4f 100644 --- a/lib/private/TagManager.php +++ b/lib/private/TagManager.php @@ -123,7 +123,7 @@ public function handle(Event $event): void { // Clean vcategory $qb1 = $this->connection->getQueryBuilder(); $qb1 = $qb1->delete('vcategory') - ->where($qb1->expr()->in('uid', $qb1->createParameter('chunk'))); + ->where($qb1->expr()->in('id', $qb1->createParameter('chunk'))); foreach (array_chunk($tagsIds, 1000) as $tagChunk) { $qb->setParameter('chunk', $tagChunk, IQueryBuilder::PARAM_INT_ARRAY);