mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
refactor(avatars): drop dead runtimeAvatar allowlist (#1236)
Signed-off-by: Taylor Ho <taylorkmho@gmail.com> Co-authored-by: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
co-authored by
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w
parent
9a19c2d197
commit
5cbdf9e21f
@@ -1,13 +0,0 @@
|
||||
const RUNTIME_AVATAR_URLS = new Set([
|
||||
"https://goose-docs.ai/img/logo_dark.png",
|
||||
"https://anthropic.gallerycdn.vsassets.io/extensions/anthropic/claude-code/2.1.77/1773707456892/Microsoft.VisualStudio.Services.Icons.Default",
|
||||
"https://openai.gallerycdn.vsassets.io/extensions/openai/chatgpt/26.5313.41514/1773706730621/Microsoft.VisualStudio.Services.Icons.Default",
|
||||
"https://raw.githubusercontent.com/block/buzz/refs/heads/main/crates/buzz-agent/buzz-agent.png",
|
||||
]);
|
||||
|
||||
export function isKnownRuntimeAvatarUrl(
|
||||
avatarUrl: string | null | undefined,
|
||||
): boolean {
|
||||
const trimmed = avatarUrl?.trim();
|
||||
return trimmed ? RUNTIME_AVATAR_URLS.has(trimmed) : false;
|
||||
}
|
||||
Reference in New Issue
Block a user