From 496234b519775c7377cce0e0876b01e170a55d12 Mon Sep 17 00:00:00 2001 From: Furrium Network Date: Tue, 11 Aug 2026 09:58:35 +0800 Subject: [PATCH] Update user.js --- js/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/user.js b/js/user.js index 1e71011..ab5df00 100644 --- a/js/user.js +++ b/js/user.js @@ -7,7 +7,7 @@ async function renderUserProfile(username) { container.innerHTML = '
加载中...
'; try { - const users = await apiFetch('/users?username=' + encodeURIComponent(username)); + const user = await apiFetch('/users/profile/' + encodeURIComponent(username)); const user = users && users.length > 0 ? users[0] : null; if (!user) {