fix(avatar): render onError avatars only in client components

AvatarImage is used on server pages via UserAvatarThumbnail but lacked
'use client', so the onError handler on its <img> could not cross the
RSC boundary. /login rendered the error page, hanging the news e2e
journey until the 240s test timeout.

- Mark AvatarImage as a client component like ProfileImage
- Replace inline <img onError> on mod/users server pages with the
  client AvatarImage component
This commit is contained in:
openhands
2026-09-15 11:43:47 +02:00
parent faa37e7c58
commit ce93b92a81
3 changed files with 10 additions and 15 deletions
+2
View File
@@ -1,3 +1,5 @@
"use client";
import {
type AvatarOptions,
avatarImageOnError,