diff --git a/src/lib/components/channel/WebhookItem.svelte b/src/lib/components/channel/WebhookItem.svelte index 04394c5ed5..6ccda8ce9c 100644 --- a/src/lib/components/channel/WebhookItem.svelte +++ b/src/lib/components/channel/WebhookItem.svelte @@ -22,6 +22,11 @@ let name = webhook.name; let image = webhook.profile_image_url || ''; + // The server decides whether an external avatar host is fetched. + $: imageSrc = image.toLowerCase().startsWith('http') + ? `${WEBUI_API_BASE_URL}/channels/webhooks/${webhook.id}/profile/image` + : image; + // Notify parent when changes occur $: if (name !== webhook.name || image !== (webhook.profile_image_url || '')) { onUpdate({ name: name.trim() || webhook.name, profile_image_url: image }); @@ -93,7 +98,7 @@ Do not alter, remove, obscure, or replace it except as LICENSE permits: https://docs.openwebui.com/license. --> @@ -130,7 +135,7 @@ Do not alter, remove, obscure, or replace it except as LICENSE permits: https://docs.openwebui.com/license. -->