Upload the account avatar to Blossom when it fills in for the picture #276

Merged
raucao merged 1 commits from bugfix/nostr-avatar-blossom into master 2026-11-28 17:25:32 +00:00
Owner

When a profile has no usable picture, the account avatar is now cropped to 400×400 and uploaded to the configured Blossom server when the profile is saved, and the returned URL is written to the profile. Previously the account's own avatar URL was published instead, which is not hosted on the configured media server and embeds the avatar's content hash.

The editor seeds the account avatar through the existing image store endpoint (source=avatar) and the normal Blossom flush then uploads it, so the account avatar rides the same pipeline as a manually chosen image. If that upload fails, the save fails like any other image upload, so a profile is never published with a non-Blossom picture.

Scope: nostr_profile_images#create gains the avatar branch; the profile editor passes a fallback flag plus the store URL; the Stimulus controller seeds it before flushing. Docs updated, with specs covering the avatar branch and the fallback flag.

When a profile has no usable picture, the account avatar is now cropped to 400×400 and uploaded to the configured Blossom server when the profile is saved, and the returned URL is written to the profile. Previously the account's own avatar URL was published instead, which is not hosted on the configured media server and embeds the avatar's content hash. The editor seeds the account avatar through the existing image store endpoint (`source=avatar`) and the normal Blossom flush then uploads it, so the account avatar rides the same pipeline as a manually chosen image. If that upload fails, the save fails like any other image upload, so a profile is never published with a non-Blossom picture. Scope: `nostr_profile_images#create` gains the avatar branch; the profile editor passes a fallback flag plus the store URL; the Stimulus controller seeds it before flushing. Docs updated, with specs covering the avatar branch and the fallback flag.
raucao added 1 commit 2026-11-28 17:24:01 +00:00
Upload the account avatar to Blossom when it fills in for the picture
CI / Test (pull_request) Successful in 1m19s
Release Drafter / Update release notes draft (pull_request) Successful in 2s
3e3d52ad8b
When a profile has no usable picture, the account avatar is now cropped and uploaded to the configured Blossom server on save, and the returned URL is written to the profile, instead of publishing the account's own avatar URL. A failed upload fails the save.
raucao added the
integration
nostr
enhancement
labels 2026-11-28 17:25:18 +00:00
raucao merged commit ef487a3c29 into master 2026-11-28 17:25:32 +00:00
raucao deleted branch bugfix/nostr-avatar-blossom 2026-11-28 17:25:32 +00:00
Sign in to join this conversation.