Fully implement /api/live/ranking

This commit is contained in:
Ethan O'Brien
2024-05-01 16:43:16 -05:00
parent 5a67be8182
commit 880758b8e1
6 changed files with 126 additions and 34 deletions

View File

@@ -351,7 +351,7 @@ pub fn detail(req: HttpRequest, body: String) -> HttpResponse {
let mut user_detail_list = array![];
for (_i, data) in body["user_ids"].members().enumerate() {
let uid = data.as_i64().unwrap();
let user = global::get_user(uid, &friends);
let user = global::get_user(uid, &friends, true);
user_detail_list.push(user).unwrap();
}
let resp = object!{