From: Hypolite Petovan Date: Sun, 26 Jan 2025 16:45:37 +0000 (-0500) Subject: Exclude invitation register rows from pending-view X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3a2c70ccb103c1393a68b0faaa26f8d70ed420b;p=friendica.git Exclude invitation register rows from pending-view ↪ They were wrongly appearing in the moderation screen and in the notifications --- 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" => [