You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5bfd5ca
Browse filesBrowse the repository at this point in the historyBrowse files
A kind:9033 command similarly makes the relay store the workspace icon (per
300
+
community) and serve it in the standard NIP-11 `icon` field of its relay
301
+
information document. Clients render it in the workspace rail/switcher; anyone
302
+
can read it (`curl -H 'Accept: application/nostr+json' http://localhost:3000`),
303
+
but only admins/owners can set it. Full spec:
304
+
[docs/nips/NIP-WP.md](docs/nips/NIP-WP.md).
305
+
298
306
### Known Limitations
299
307
300
308
1.**CLI intentionally does not emit kind 8000/8001 deltas** — `publish_nip43_delta` is
"icon data URL too long: {} bytes (max {MAX_WORKSPACE_ICON_DATA_URL_LEN})",
80
+
icon.len()
81
+
));
82
+
}
83
+
returnOk(());
84
+
}
85
+
if !icon.starts_with("https://") && !icon.starts_with("http://"){
86
+
returnErr("icon must be an http(s) URL or data:image/* URL".to_string());
87
+
}
88
+
if icon.len() > MAX_WORKSPACE_ICON_URL_LEN{
89
+
returnErr(format!(
90
+
"icon URL too long: {} bytes (max {MAX_WORKSPACE_ICON_URL_LEN})",
91
+
icon.len()
92
+
));
93
+
}
94
+
Ok(())
95
+
}
96
+
97
+
/// Validate and execute a relay admin command (kinds 9030–9033).
56
98
///
57
99
/// The handler:
58
100
/// 1. Extracts the target pubkey from the `["p", ...]` tag.
0 commit comments