settings: Fix last_active sorting in user settings.

We were incorrectly accessing .id, not .user_id, on the people objects.

Fixes #15165.
This commit is contained in:
Sahil Silare
2020-06-03 00:37:09 +05:30
committed by GitHub
parent f93c19ec62
commit c4d0bd6445

View File

@@ -58,8 +58,8 @@ function sort_bot_owner(a, b) {
function sort_last_active(a, b) {
return compare_a_b(
presence.last_active_date(a.id) || 0,
presence.last_active_date(b.id) || 0
presence.last_active_date(a.user_id) || 0,
presence.last_active_date(b.user_id) || 0
);
}