From: Steffen K9 Date: Mon, 3 Feb 2020 20:49:53 +0000 (+0100) Subject: Changed statistics query for nodeinfo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b16ca2b026b14cdea8dad79853bf0ab2ee6aaeff;p=friendica.git Changed statistics query for nodeinfo Removed the published to directories condition. Added check for 'user has logged in at least once'. Excluded community accounts (forums) from the user count. --- diff --git a/src/Model/User.php b/src/Model/User.php index fd7238819d..f7562e1486 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -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`");