Exclude invitation register rows from pending-view

↪ They were wrongly appearing in the moderation screen and in the notifications
This commit is contained in:
Hypolite Petovan 2025-01-26 11:45:37 -05:00
parent 5a00a2c441
commit e3a2c70ccb
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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" => [