We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 068e52f commit 00cb7f5Copy full SHA for 00cb7f5
1 file changed
src/lib/components/channel/Messages/Message.svelte
@@ -285,12 +285,15 @@
285
e.currentTarget.src = '/favicon.png';
286
}}
287
/>
288
+ {:else if message.user?.role === 'webhook'}
289
+ <ProfileImage
290
+ src={`${WEBUI_API_BASE_URL}/channels/webhooks/${message.user?.id}/profile/image`}
291
+ className={'size-8 ml-0.5'}
292
+ />
293
{:else}
294
<ProfilePreview user={message.user}>
295
<ProfileImage
- src={message.user?.role === 'webhook'
- ? `${WEBUI_API_BASE_URL}/channels/webhooks/${message.user?.id}/profile/image`
- : `${WEBUI_API_BASE_URL}/users/${message.user?.id}/profile/image`}
296
+ src={`${WEBUI_API_BASE_URL}/users/${message.user?.id}/profile/image`}
297
className={'size-8 ml-0.5'}
298
299
</ProfilePreview>
0 commit comments