mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-01-18 04:01:33 +00:00
add t-tags in kind 41 (#1673)
This commit is contained in:
parent
0f376a7aa4
commit
5b6ca881e2
9
28.md
9
28.md
@ -52,10 +52,17 @@ Clients MAY add additional metadata fields.
|
|||||||
|
|
||||||
Clients SHOULD use [NIP-10](10.md) marked "e" tags to recommend a relay.
|
Clients SHOULD use [NIP-10](10.md) marked "e" tags to recommend a relay.
|
||||||
|
|
||||||
|
It is also possible to set the category name using the "t" tag. This category name can be searched and filtered.
|
||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
"content": "{\"name\": \"Updated Demo Channel\", \"about\": \"Updating a test channel.\", \"picture\": \"https://placekitten.com/201/201\", \"relays\": [\"wss://nos.lol\", \"wss://nostr.mom\"]}",
|
"content": "{\"name\": \"Updated Demo Channel\", \"about\": \"Updating a test channel.\", \"picture\": \"https://placekitten.com/201/201\", \"relays\": [\"wss://nos.lol\", \"wss://nostr.mom\"]}",
|
||||||
"tags": [["e", <channel_create_event_id>, <relay-url>]],
|
"tags": [
|
||||||
|
["e", <channel_create_event_id>, <relay-url>, "root"],
|
||||||
|
["t", <category_name-1>],
|
||||||
|
["t", <category_name-2>],
|
||||||
|
["t", <category_name-3>],
|
||||||
|
],
|
||||||
// other fields...
|
// other fields...
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user