Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

docs(avatar): update documentation for avatar URL handling in input types

Ahmet Ömer5998c9f9e2a2
diff --git a/app/utils/avatar.ts b/app/utils/avatar.ts
index 7bd08756..06b5b63f 100644
--- a/app/utils/avatar.ts
+++ b/app/utils/avatar.ts
@@ -1,6 +1,11 @@
export const DEFAULT_AVATAR_URL = '/web-app-manifest-192x192.png'
-/** Uploaded avatars use a relative route, which HTML URL inputs reject. */
+/**
+ * Uploaded avatars use a relative route, which HTML URL inputs reject.
+ * Keep this pattern in sync with processAvatar() and getAvatarPublicUrl() in
+ * server/utils/avatar-store.ts. The upload endpoint in
+ * server/api/system/settings/avatar.post.ts saves that URL as app:avatarUrl.
+ */
export function getAvatarInputType(
value: string | null | undefined,
): 'text' | 'url' {