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.
This commit is contained in:
Steffen K9 2020-02-03 21:49:53 +01:00 committed by GitHub
parent 480d936685
commit b16ca2b026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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`");