Update user.js

This commit is contained in:
Furrium Network authored and GitHub committed 2026-08-11 09:58:35 +08:00
1 parent bb849fc67a
commit 496234b519
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ async function renderUserProfile(username) {
container.innerHTML = '<div style="text-align:center;color:#94a3b8;padding:40px 0;">加载中...</div>';
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) {