refac: profile_image_url optimization

This commit is contained in:
Timothy Jaeryang Baek committed 2025-11-20 20:43:59 -05:00
1 parent cd30152c83
commit 6442871947
28 files changed
+56 -97

No files matched your search

@@ -185,8 +185,7 @@
/>
{:else}
<img
src={message.reply_to_message.user?.profile_image_url ??
`${WEBUI_BASE_URL}/static/favicon.png`}
src={`${WEBUI_API_BASE_URL}/users/${message.reply_to_message.user?.id}/profile/image`}
alt={message.reply_to_message.user?.name ?? $i18n.t('Unknown User')}
class="size-4 ml-0.5 rounded-full object-cover"
/>
@@ -220,7 +219,7 @@
{:else}
<ProfilePreview user={message.user}>
<ProfileImage
src={message.user?.profile_image_url ?? `${WEBUI_BASE_URL}/static/favicon.png`}
src={`${WEBUI_API_BASE_URL}/users/${message.user.id}/profile/image`}
className={'size-8 ml-0.5'}
/>
</ProfilePreview>