From 2bf5aee46914fff1e743a27178a3ecb8ad5a1f18 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 7 Mar 2025 14:22:05 +0100 Subject: [PATCH] Fix avatar fallback in media gallery (#34106) --- .../mastodon/features/account_gallery/components/media_item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/account_gallery/components/media_item.tsx b/app/javascript/mastodon/features/account_gallery/components/media_item.tsx index 80704c3388..3de2a29b18 100644 --- a/app/javascript/mastodon/features/account_gallery/components/media_item.tsx +++ b/app/javascript/mastodon/features/account_gallery/components/media_item.tsx @@ -70,7 +70,7 @@ export const MediaItem: React.FC<{ attachment.get('description')) as string | undefined; const previewUrl = attachment.get('preview_url') as string; const fullUrl = attachment.get('url') as string; - const avatarUrl = status.getIn(['account', 'avatar_static']) as string; + const avatarUrl = account?.avatar_static; const lang = status.get('language') as string; const blurhash = attachment.get('blurhash') as string; const statusId = status.get('id') as string;