Skip to content

Commit af2adb5

Browse files
author
pengyu
committed
fix the avatar
1 parent c7d6619 commit af2adb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/avatar-uploader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function normalizeAvatarUrl(
2929
// Handle paths that might not have the media/ prefix
3030
if (avatarUrl.includes('avatars/')) {
3131
const parts = avatarUrl.split('avatars/');
32-
return `/api/media/avatars/${parts[parts.length - 1]}`;
32+
return `/media/avatars/${parts[parts.length - 1]}`;
3333
}
3434

3535
// Return as is for other cases

0 commit comments

Comments
 (0)