Fix wrong TMDB field for person profile images in search

Person results from multi-search were using poster_path instead of
profile_path, causing missing profile images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 19:18:27 -05:00
co-authored by Claude Opus 4.6
parent ac1cbddf0a
commit b565fb1023
+1 -1
View File
@@ -86,7 +86,7 @@ export async function GET(req: NextRequest) {
type: "person" as const, type: "person" as const,
title: r.name ?? "Unknown", title: r.name ?? "Unknown",
posterPath: null, posterPath: null,
profilePath: tmdbImageUrl(r.poster_path, "w185"), profilePath: tmdbImageUrl(r.profile_path, "w185"),
overview: "", overview: "",
releaseDate: null, releaseDate: null,
popularity: r.popularity, popularity: r.popularity,