diff options
| author | T.Shinohara <takuma1201@gmail.com> | 2025-01-13 23:37:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-13 11:37:53 -0300 |
| commit | 5b6ca881e24d5a6e089d3c577c6c7cab98bbb19d (patch) | |
| tree | fa7e9c67688654b6b1d436777819a2edccfbaab5 /28.md | |
| parent | 0f376a7aa455521f3d2f4ec6a8dd1b764ec8d7bb (diff) | |
add t-tags in kind 41 (#1673)
Diffstat (limited to '28.md')
| -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 | ``` |