]> git.mxchange.org Git - friendica.git/commitdiff
Exclude invitation register rows from pending-view
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 Jan 2025 16:45:37 +0000 (11:45 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 26 Jan 2025 22:53:58 +0000 (17:53 -0500)
↪ They were wrongly appearing in the moderation screen and in the notifications

database.sql
static/dbview.config.php

index f496269255d2d11a0e13a8363fcab5f5322566f5..f12af1ef232e878b84e9b178d4dcd4f067d7b662 100644 (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
index f3f81938bced881488d5ab2163f1a86ade2b1f8f..3437dcb22d4a20196959886fe7528f69bfcd1ac8 100644 (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" => [