mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
Update NIP-11
This commit is contained in:
parent
015d847f2b
commit
9c7c92acd0
17
src/web.rs
17
src/web.rs
@ -102,6 +102,23 @@ fn build_rid(config: &Config) -> String {
|
||||
rid.push_str(unsafe { std::str::from_utf8_unchecked(pkh.as_slice()) });
|
||||
rid.push('\"');
|
||||
}
|
||||
|
||||
// Limitation
|
||||
rid.push(',');
|
||||
rid.push_str("\"limitation\":{");
|
||||
{
|
||||
rid.push_str("\"payment_required\":false,\"auth_required\":false,\"restricted_writes\":true,\"max_message_length\":1048576");
|
||||
rid.push_str(&format!(
|
||||
",\"max_subscriptions\":{}",
|
||||
config.max_subscriptions
|
||||
));
|
||||
}
|
||||
rid.push('}');
|
||||
|
||||
// Retention
|
||||
rid.push(',');
|
||||
rid.push_str("\"retention\":[{\"time\": null}]");
|
||||
|
||||
rid.push('}');
|
||||
|
||||
rid
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user