upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorT.Shinohara <takuma1201@gmail.com>2025-01-13 23:37:53 +0900
committerGitHub <noreply@github.com>2025-01-13 11:37:53 -0300
commit5b6ca881e24d5a6e089d3c577c6c7cab98bbb19d (patch)
treefa7e9c67688654b6b1d436777819a2edccfbaab5
parent0f376a7aa455521f3d2f4ec6a8dd1b764ec8d7bb (diff)
add t-tags in kind 41 (#1673)
-rw-r--r--28.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/28.md b/28.md
index 73c76b2..6b240ef 100644
--- a/28.md
+++ b/28.md
@@ -52,10 +52,17 @@ Clients MAY add additional metadata fields.
52 52
53Clients SHOULD use [NIP-10](10.md) marked "e" tags to recommend a relay. 53Clients SHOULD use [NIP-10](10.md) marked "e" tags to recommend a relay.
54 54
55It 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```