mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
feat: per-community workspace icon set by admins, served via NIP-11 (#1463)
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
8
NOSTR.md
8
NOSTR.md
@@ -262,6 +262,7 @@ the sender to be authenticated (NIP-42) as the relay owner or an admin.
|
||||
| 9030 | Add member | `["p", "<hex-pubkey>"]`, optional `["role", "member\|admin"]` |
|
||||
| 9031 | Remove member | `["p", "<hex-pubkey>"]`, optional `["role", "member\|admin"]` |
|
||||
| 9032 | Change role | `["p", "<hex-pubkey>"]`, `["role", "member\|admin"]` |
|
||||
| 9033 | Set workspace profile (icon) | `["icon", "<https-url or data:image/* URL>"]` (empty clears) |
|
||||
|
||||
Example using `nak`:
|
||||
|
||||
@@ -295,6 +296,13 @@ After each add/remove/role-change, the relay publishes a kind:13534 membership l
|
||||
nak req -k 13534 --auth --sec <privkey> ws://localhost:3000
|
||||
```
|
||||
|
||||
A kind:9033 command similarly makes the relay store the workspace icon (per
|
||||
community) and serve it in the standard NIP-11 `icon` field of its relay
|
||||
information document. Clients render it in the workspace rail/switcher; anyone
|
||||
can read it (`curl -H 'Accept: application/nostr+json' http://localhost:3000`),
|
||||
but only admins/owners can set it. Full spec:
|
||||
[docs/nips/NIP-WP.md](docs/nips/NIP-WP.md).
|
||||
|
||||
### Known Limitations
|
||||
|
||||
1. **CLI intentionally does not emit kind 8000/8001 deltas** — `publish_nip43_delta` is
|
||||
|
||||
Reference in New Issue
Block a user