From 7bddec93ec7e3094f901297ddbc7b6d93148ce7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 19 Oct 2020 18:56:39 -0400 Subject: [PATCH] fix: sortby --- src/controllers/admin/users.js | 2 +- src/views/admin/manage/users.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/admin/users.js b/src/controllers/admin/users.js index 26edf7a00109..3acd0cd80866 100644 --- a/src/controllers/admin/users.js +++ b/src/controllers/admin/users.js @@ -64,7 +64,7 @@ async function getUsers(req, res) { } if (!set.length) { set.push('users:online'); - sortBy = 'online'; + sortBy = 'lastonline'; } return set.length > 1 ? set : set[0]; } diff --git a/src/views/admin/manage/users.tpl b/src/views/admin/manage/users.tpl index 0578299721fa..bf1511647314 100644 --- a/src/views/admin/manage/users.tpl +++ b/src/views/admin/manage/users.tpl @@ -98,7 +98,7 @@ [[admin/manage/users:users.reputation]] {{{if sort_reputation}}}{{{end}}} [[admin/manage/users:users.flags]] {{{if sort_flags}}}{{{end}}} [[admin/manage/users:users.joined]] {{{if sort_joindate}}}{{{end}}} - [[admin/manage/users:users.last-online]] {{{if sort_online}}}{{{end}}} + [[admin/manage/users:users.last-online]] {{{if sort_lastonline}}}{{{end}}}