feat: publication icon (profile image) for standard.site records#7
Merged
Conversation
Add optional STANDARD_SITE_ICON config: the publisher uploads the image as a blob (com.atproto.repo.uploadBlob) and sets it as the site.standard.publication `icon`. Accepts an http(s) URL or a local file path (png/jpg/webp). The icon is part of the publication record build, so it survives every re-publish.
- .env.example: STANDARD_SITE_ICON is a per-site placeholder, not a hardcoded URL - publish.ts: a missing/broken icon logs a warning and continues instead of failing the whole publish (icons live in the website repo and are fetched by URL, which may lag a deploy)
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional publication icon (profile image) to the standard.site publisher.
Changes
atproto.ts:uploadBlob()(com.atproto.repo.uploadBlob) +BlobReftype.publish.ts: newSTANDARD_SITE_ICONconfig — an http(s) URL or local file path (png/jpg/webp). The publisher uploads it as a blob and sets it as thesite.standard.publicationicon. Because it's built into the publication record, it survives every re-publish (a one-off manual patch would be wiped on the next build)..env.exampleupdated.Verification
npm run typecheckclean.uploadBlobtested live againstbsky.socialwith an app password → returns a valid blob ref (non-destructive; blob left unreferenced).Consuming repos opt in by setting
STANDARD_SITE_ICON(a square image ≥256×256).