Fix channel avatar: include channel_thumbnail_url in video response

Reading from the channels query cache was unreliable (cache might not be
loaded, or channel not followed). Add c.thumbnail_url AS channel_thumbnail_url
to _VIDEO_SELECT so every video response carries its channel avatar directly.
VideoCard uses it with cache as fallback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mattias Tall
2026-05-26 12:16:43 +02:00
parent aaa9d0145e
commit b3c288a590
2 changed files with 3 additions and 1 deletions

View File

@@ -314,7 +314,7 @@ export default function VideoCard({ video, size = "md", onDismiss, variant = "gr
}
// ── Grid variant ─────────────────────────────────────────────────────────
const avatarUrl = channelMeta?.thumbnail_url ?? null;
const avatarUrl = video.channel_thumbnail_url ?? channelMeta?.thumbnail_url ?? null;
const avatarLetter = video.channel_name?.[0]?.toUpperCase() ?? "?";
return (