chadtmiller.com/group-host
atmosphere group host
A group's links show their site's icon, kept as the group's own
MergedThis adds an optional PNG icon blob (≤100,000 bytes) to a profile link. The host accepts it only as one of the group's own uploads, checked through the same path as the avatar. The console, the CLI and the profile_set MCP tool each fetch a favicon once through a configurable service and upload it as the group. Links written again at a known address keep their icon.
I read the Rust, lexicon, config and settings.ts changes, and found no bugs. I did not read the tests, docs, harness, seed or Svelte presentation files, so they are unreviewed. icons reuses image, so the validation matches the avatar's. iconless skips non-object links and non-web URLs and passes through any icon the caller supplied, which icons then validates server-side. A failed fetch leaves the link without an icon.
Two small things, neither blocking:
- The body says the fetch waits 8 seconds. The host's
faviconinmcp.rsuses the shared client, whose timeout isOUTGOING_TIMEOUT(10 seconds). The CLI and the console do use 8 seconds. This is harmless, but the body and docs should match, or the host should set the same per-request timeout. - The host's
faviconreads the whole response body before checking its size. The service is operator-configured, so this is low risk. You could checkContent-Lengthfirst, or cap the read.
What changes
A link's icon. A link in a group's profile (
fyi.opensocial.defs#link) has a new optionalicon: the site's favicon, a PNG blob of the group's own, of at most 100,000 bytes. The host keeps an icon only when it is one of the group's uploads, a PNG no larger than that, as it checks the avatar. getGroup shows it as the record holds it, and/img/{did}/{cid}serves it to whoever may see the profile, so someone looking at the group never asks the site.Where icons come from. Each of the console's "Add a link",
opensocial profile set --linksand theprofile_setMCP tool asks a favicon service for a new link's icon (FAVICONS, Bluesky'shttps://cardyb.bsky.app/v1/favicon?url=by default, empty for none), uploads it as the group, and names it on the link. A site with no icon, a slow one (8 seconds), or an icon that is no PNG or too large leaves the link without one. A link written again at an address the profile already had keeps the icon it had, soprofile set --linksdoes not refetch them. The shared step isiconlessandiconedingroup-host-mcp.The console. A link shows its icon (
LinkIcon), on the group's page and in its settings, or the chain icon where it has none or the icon will not load.Why
Links read as a row of chain icons, with nothing to tell a chat from a calendar. This follows Bluesky's profile links: the favicon is fetched through its service once, when the link is saved, and kept as a blob, rather than each viewer's browser loading it from a third party. The fetch is done by the one writing the link, as Bluesky's app does, so the host keeps a record as it was sent.
How it was checked
group_config: a link with an icon as large as one may be is kept and shown; icons that are no PNG, too large, or not the group's are refused.group-host-mcpprotocol:iconlessasks only new web links, encoding each address, keeps a known link's icon, and asks nothing with no service or for another record.group-hostmcpandopensocialcommands:profile_setandprofile set --linksagainst a stand-in favicon service: an icon for a site with one, none for one with none, too large or no PNG, and the same links written again keep theirs.harness/world.mjs), which the console andjust lookuse too.just lex,just docs, svelte-check and the layer check pass here; the gate and e2e are left to CI.just look: the group's page and its links in settings, full, desktop and phone, light and dark.Shortcomings
🤖 Generated with Claude Code