feat(header): afficher la photo de profil a la place des initiales (#6)
CD — Déploiement / deploy (push) Successful in 20s

/auth/me renvoie desormais has_avatar et avatar_updated_at (LEFT JOIN
user_avatars). Le header affiche l'avatar avec un cache-buster sur
updated_at, et retombe sur les initiales en cas d'absence ou d'echec.

Le profil rafraichit la session apres ajout/retrait de l'avatar pour que
le header se mette a jour immediatement.

---------

Co-authored-by: xEsiah <[email protected]>
Reviewed-on: #6
Reviewed-by: Esiah <[email protected]>
Co-authored-by: Gitea Actions <-[email protected]>
This commit was merged in pull request #6.
This commit is contained in:
Gitea Actions
2026-10-16 11:44:34 +00:00
committed by Esiah
co-authored by Esiah
parent 284646562b
commit c5df5c05f1
4 changed files with 24 additions and 4 deletions
+2
View File
@@ -9,6 +9,8 @@ export interface User {
used_bytes: number;
max_file_bytes: number;
must_change_password: boolean;
has_avatar: boolean;
avatar_updated_at: string | null;
}
export interface Folder {