diff options
| -rw-r--r-- | 28.md | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -52,10 +52,17 @@ Clients MAY add additional metadata fields. | |||
| 52 | 52 | ||
| 53 | Clients SHOULD use [NIP-10](10.md) marked "e" tags to recommend a relay. | 53 | Clients SHOULD use [NIP-10](10.md) marked "e" tags to recommend a relay. |
| 54 | 54 | ||
| 55 | It is also possible to set the category name using the "t" tag. This category name can be searched and filtered. | ||
| 56 | |||
| 55 | ```jsonc | 57 | ```jsonc |
| 56 | { | 58 | { |
| 57 | "content": "{\"name\": \"Updated Demo Channel\", \"about\": \"Updating a test channel.\", \"picture\": \"https://placekitten.com/201/201\", \"relays\": [\"wss://nos.lol\", \"wss://nostr.mom\"]}", | 59 | "content": "{\"name\": \"Updated Demo Channel\", \"about\": \"Updating a test channel.\", \"picture\": \"https://placekitten.com/201/201\", \"relays\": [\"wss://nos.lol\", \"wss://nostr.mom\"]}", |
| 58 | "tags": [["e", <channel_create_event_id>, <relay-url>]], | 60 | "tags": [ |
| 61 | ["e", <channel_create_event_id>, <relay-url>, "root"], | ||
| 62 | ["t", <category_name-1>], | ||
| 63 | ["t", <category_name-2>], | ||
| 64 | ["t", <category_name-3>], | ||
| 65 | ], | ||
| 59 | // other fields... | 66 | // other fields... |
| 60 | } | 67 | } |
| 61 | ``` | 68 | ``` |