mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix: time cutoff and lang string
This commit is contained in:
@@ -159,7 +159,7 @@ usersController.getUsers = async function (set, uid, query) {
|
||||
usersController.getUsersAndCount = async function (set, uid, start, stop) {
|
||||
async function getCount() {
|
||||
if (set === 'users:online') {
|
||||
return await db.sortedSetCount('users:online', Date.now() - 300000, '+inf');
|
||||
return await db.sortedSetCount('users:online', Date.now() - (meta.config.onlineCutoff * 60000), '+inf');
|
||||
} else if (set === 'users:banned' || set === 'users:flags') {
|
||||
return await db.sortedSetCard(set);
|
||||
}
|
||||
|
Reference in New Issue
Block a user