mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 17:05:51 -05:00
Updates to allow multiple tags in a single 30021 record
This commit is contained in:
parent
6a1c8eb781
commit
8cb9b76a84
18
54.md
18
54.md
|
@ -28,27 +28,33 @@ Kind `21` defines a `kind:1`-equivalent event that MUST NOT be displayed unless
|
|||
}
|
||||
```
|
||||
|
||||
Clients MUST include at least one `g`, `t`, `r` or `l` tags.
|
||||
|
||||
`.content` MUST be plain text and tags that mention, quote and assemble threading structures MUST follow [NIP-10](10.md).
|
||||
|
||||
## Topical Relay Setup
|
||||
|
||||
Kind `30021` defines a topic follower. It registers a list of relays to aggregate events for each topic.
|
||||
Kind `30021` defines a following topic. It registers a list of relays to aggregate events for the list of topics.
|
||||
|
||||
The `d` tag of this kind is equal to `name:value` of the topics used in kind `21`.
|
||||
The `d` tag of this kind is a simple `UUID`.
|
||||
|
||||
```js
|
||||
{
|
||||
"kind": 30021,
|
||||
"tags": [
|
||||
["d", "g:<my city's geohash>"],
|
||||
["r", "wss://my-city-owned-relay"],
|
||||
["r", "wss://independent-but-city-based-relay"],
|
||||
["d", "<UUID>"],
|
||||
["g", "<geohash>"],
|
||||
["t", "<hashtag>"],
|
||||
["r", "<url>"],
|
||||
["relay", "wss://my-city-owned-relay"],
|
||||
["relay", "wss://independent-but-city-based-relay"],
|
||||
// ... other tags
|
||||
["title", "Name of this topic"]
|
||||
],
|
||||
"content": nip44Encrypt([
|
||||
["r", "wss://my-city-owned-relay2"], // private relay
|
||||
["relay", "wss://my-city-owned-relay2"], // private relay
|
||||
["title", "Name of this topic"] // private topic title
|
||||
["t", "<hashtag>"], // private follows of tags.
|
||||
// ... other tags
|
||||
]),
|
||||
//...other fields
|
||||
|
|
Loading…
Reference in New Issue
Block a user