From e3a2c70ccb103c1393a68b0faaa26f8d70ed420b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 26 Jan 2025 11:45:37 -0500 Subject: [PATCH] Exclude invitation register rows from pending-view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ↪ They were wrongly appearing in the moderation screen and in the notifications --- database.sql | 3 ++- static/dbview.config.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index f496269255..f12af1ef23 100644 --- a/database.sql +++ b/database.sql @@ -3809,7 +3809,8 @@ CREATE VIEW `pending-view` AS SELECT `contact`.`nick` AS `nick` FROM `register` INNER JOIN `contact` ON `register`.`uid` = `contact`.`uid` - INNER JOIN `user` ON `register`.`uid` = `user`.`uid`; + INNER JOIN `user` ON `register`.`uid` = `user`.`uid` + WHERE `register`.`uid` != 0; -- -- VIEW tag-search-view diff --git a/static/dbview.config.php b/static/dbview.config.php index f3f81938bc..3437dcb22d 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -1763,7 +1763,8 @@ return [ ], "query" => "FROM `register` INNER JOIN `contact` ON `register`.`uid` = `contact`.`uid` - INNER JOIN `user` ON `register`.`uid` = `user`.`uid`" + INNER JOIN `user` ON `register`.`uid` = `user`.`uid` + WHERE `register`.`uid` != 0" ], "tag-search-view" => [ "fields" => [