mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: time cutoff and lang string
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"forum-traffic": "Forum Traffic",
|
||||
"page-views": "Page Views",
|
||||
"unique-visitors": "Unique Visitors",
|
||||
"users": "Users",
|
||||
"new-users": "New Users",
|
||||
"posts": "Posts",
|
||||
"topics": "Topics",
|
||||
"page-views-seven": "Last 7 Days",
|
||||
|
||||
@@ -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