]> git.mxchange.org Git - friendica.git/commitdiff
Changed statistics query for nodeinfo
authorSteffen K9 <alfred@skrumbholz.de>
Mon, 3 Feb 2020 20:49:53 +0000 (21:49 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2020 20:49:53 +0000 (21:49 +0100)
Removed the published to directories condition. Added check for 'user has logged in at least once'. Excluded community accounts (forums) from the user count.

src/Model/User.php

index fd7238819d23ad293d1df1e7114ca90c0287889d..f7562e1486bb9ed6b189f3998075402d7e343877 100644 (file)
@@ -1113,7 +1113,7 @@ class User
                        FROM `user`
                        INNER JOIN `profile` ON `profile`.`uid` = `user`.`uid`
                        INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` AND `contact`.`self`
-                       WHERE (`profile`.`publish` OR `profile`.`net-publish`) AND `user`.`verified`
+                       WHERE `user`.`verified` AND `user`.`login_date` > '0001-01-01' AND NOT `user`.`account-type` = 3
                                AND NOT `user`.`blocked` AND NOT `user`.`account_removed`
                                AND NOT `user`.`account_expired`");