fix(avatar): render onError avatars only in client components
CI / check (push) Successful in 4m33s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 1m51s

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 committed 2026-09-15 11:43:47 +02:00
1 parent faa37e7c58
commit ce93b92a81
3 files changed
+10 -15

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
"use client";
import {
type AvatarOptions,
avatarImageOnError,