From 4f525b8550183b1293b719e934424b0e15217259 Mon Sep 17 00:00:00 2001 From: Makisuo Date: Sun, 26 Apr 2026 14:10:53 +0200 Subject: [PATCH] fix: drop avatarUrl from Maple webhook create payload The channelWebhook.create RPC validates avatarUrl by HEAD-fetching the URL and asserting Content-Type starts with image/. Brandfetch's CDN now serves a 302 redirect to its hotlinking guidelines (text/html) on direct hits, so passing the Brandfetch icon URL fails validation: defect: "Avatar URL must point to an image\n at [\"avatarUrl\"]" The webhook record's avatarUrl is only used as a fallback in the channel integrations settings list. The bot identity that actually appears on posted messages is resolved via WEBHOOK_BOT_CONFIGS.maple by IntegrationBotService.getOrCreateWebhookBotUser, which is unaffected by the create payload. Dropping the field unblocks creation without changing the rendered embed. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/src/components/channel-settings/maple-section.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/web/src/components/channel-settings/maple-section.tsx b/apps/web/src/components/channel-settings/maple-section.tsx index 77bf229b2..439196cb2 100644 --- a/apps/web/src/components/channel-settings/maple-section.tsx +++ b/apps/web/src/components/channel-settings/maple-section.tsx @@ -64,7 +64,6 @@ export function MapleSection({ channelId, name: MAPLE_NAME, description: "Maple alert notifications", - avatarUrl: mapleLogoUrl, integrationProvider: "maple", }, })