From 4aa00fd3d8ef1456cb208069dbe2cc1cc1f5e8f2 Mon Sep 17 00:00:00 2001 From: ethanaobrien Date: Sat, 3 May 2025 23:16:02 -0500 Subject: [PATCH] Fix for fried list Man I am hungry and I have no food.... --- src/router/friend.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/router/friend.rs b/src/router/friend.rs index e0821b1..d37d26f 100644 --- a/src/router/friend.rs +++ b/src/router/friend.rs @@ -24,7 +24,9 @@ pub fn friend(req: HttpRequest, body: String) -> Option { }; for uid in rv_data.members() { - rv.push(global::get_user(uid.as_i64().unwrap(), &friends, false)).unwrap(); + let mut user = global::get_user(uid.as_i64().unwrap(), &friends, false); + user["user"]["last_login_time"] = global::set_time(user["user"]["last_login_time"].as_u64().unwrap_or(0), user_id, false).into(); + rv.push(user).unwrap(); } Some(object!{