fix: use avatar/banner URLs directly, not through posterUrl()
Some checks failed
CI / Check / Test (push) Failing after 11m13s

This commit is contained in:
2026-06-04 04:30:38 +02:00
parent fd9a053702
commit af8e58aeb8
2 changed files with 3 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ import { MovieCard } from "@/components/movie-card"
import { EmptyState } from "@/components/empty-state"
import { SwipeTabs } from "@/components/swipe-tabs"
import { VirtualList } from "@/components/virtual-list"
import { posterUrl } from "@/lib/api/client"
import { useInfiniteDiary } from "@/hooks/use-diary"
import type { UserProfileResponse } from "@/lib/api/users"
@@ -40,7 +39,7 @@ export function ProfileView({
<div className="space-y-4">
<div className="flex items-center gap-4">
<Avatar size="lg">
{avatar && <AvatarImage src={posterUrl(avatar)} />}
{avatar && <AvatarImage src={avatar} />}
<AvatarFallback>{initial}</AvatarFallback>
</Avatar>
<div className="flex-1">

View File

@@ -9,7 +9,6 @@ import { Label } from "@/components/ui/label"
import { Separator } from "@/components/ui/separator"
import { Textarea } from "@/components/ui/textarea"
import { Skeleton } from "@/components/ui/skeleton"
import { posterUrl } from "@/lib/api/client"
import { useProfile, useUpdateProfile, useUpdateProfileFields } from "@/hooks/use-users"
export const Route = createFileRoute("/_app/settings/edit-profile")({
@@ -93,8 +92,8 @@ function EditProfilePage() {
)
}
const currentAvatar = avatarPreview ?? posterUrl(data?.avatar_url)
const currentBanner = bannerPreview ?? posterUrl(data?.banner_url)
const currentAvatar = avatarPreview ?? data?.avatar_url
const currentBanner = bannerPreview ?? data?.banner_url
const saving = update.isPending || updateFields.isPending
return (