Commit 1a3a0c6
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
0 commit comments