Update user.js
This commit is contained in:
1 parent
bb849fc67a
commit
496234b519
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user