Skip to content

High performance self-hosted photo and video management solution.

fix(web): profile picture url (#9754)

Michel Heusschen98c4c683ae79
diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts
index f52f3371f1..7d32501395 100644
--- a/web/src/lib/utils.ts
+++ b/web/src/lib/utils.ts
@@ -179,8 +179,8 @@ export const getAssetThumbnailUrl = (
return createUrl(path, { format, key: getKey(), c: checksum });
};
-export const getProfileImageUrl = (...[userId]: [string]) => {
- const path = `/users/profile-image/${userId}`;
+export const getProfileImageUrl = (userId: string) => {
+ const path = `/users/${userId}/profile-image`;
return createUrl(path);
};