From 25455e943db2e3150770a65337a4394344d760f8 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 11 Aug 2026 13:05:35 -0400 Subject: [PATCH] fix(ui): resolve owner avatars against the API base url and add a fallback (#28272) --- src/lib/components/chat/Placeholder/ChatList.svelte | 8 +++++++- src/lib/components/layout/Sidebar/ChatItem.svelte | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Placeholder/ChatList.svelte b/src/lib/components/chat/Placeholder/ChatList.svelte index aaecdbb73f..92f099ccd0 100644 --- a/src/lib/components/chat/Placeholder/ChatList.svelte +++ b/src/lib/components/chat/Placeholder/ChatList.svelte @@ -11,6 +11,7 @@ import dayjs from 'dayjs'; import localizedFormat from 'dayjs/plugin/localizedFormat'; import { getTimeRange } from '$lib/utils'; + import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants'; import ChevronUp from '$lib/components/icons/ChevronUp.svelte'; import ChevronDown from '$lib/components/icons/ChevronDown.svelte'; import ChevronLeft from '$lib/components/icons/ChevronLeft.svelte'; @@ -240,9 +241,14 @@ {#if showOwnerInfo && chat.user_id && chat.owner_name} { + if (!e.currentTarget.src.endsWith('/static/favicon.png')) { + e.currentTarget.src = `${WEBUI_BASE_URL}/static/favicon.png`; + } + }} /> {/if} diff --git a/src/lib/components/layout/Sidebar/ChatItem.svelte b/src/lib/components/layout/Sidebar/ChatItem.svelte index c59c49ee53..12be41f94a 100644 --- a/src/lib/components/layout/Sidebar/ChatItem.svelte +++ b/src/lib/components/layout/Sidebar/ChatItem.svelte @@ -16,6 +16,7 @@