fix user avatar

This commit is contained in:
Swrup 2025-04-20 21:21:15 +02:00
parent 87a9806056
commit e6fe0ab5df
3 changed files with 10 additions and 26 deletions

View file

@ -208,17 +208,7 @@ module User = struct
match user.avatar_info with
| None -> []
| Some info ->
let alt_at =
if String.equal "" info.alt then []
else [ alt info.alt; name info.name; title info.alt ]
in
let at =
[ Fmt.kstr src "/user/%s/avatar" user.user_id
; class' "img-thumbnail"
]
@ alt_at
in
[ El.img ~at () ]
[ Html_util.mk_image ~is_small:true (Avatar (user.user_id, info)) ]
in
h1 user.user_nick :: bio :: img