upleb.uk

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

summaryrefslogtreecommitdiff
path: root/28.md
diff options
context:
space:
mode:
Diffstat (limited to '28.md')
-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```