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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user