Skip to content

Commit 1a3a0c6

Browse files
Makisuoclaude
andauthored
fix: drop avatarUrl from Maple webhook create payload (#318)
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) <noreply@anthropic.com>
1 parent 124ec60 commit 1a3a0c6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

apps/web/src/components/channel-settings/maple-section.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export function MapleSection({
6464
channelId,
6565
name: MAPLE_NAME,
6666
description: "Maple alert notifications",
67-
avatarUrl: mapleLogoUrl,
6867
integrationProvider: "maple",
6968
},
7069
})

0 commit comments

Comments
 (0)