upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Fernandez <p@f7z.io>2023-12-05 10:10:48 +0000
committerfiatjaf <fiatjaf@gmail.com>2024-02-23 20:52:15 -0300
commit5e0c0b5fee21f272d983fe68d5ec3109369d4a72 (patch)
treeeb9c74902756ba11205f2de777b8cfd543bdf43a
parent363212b375e7f2c7692e5f46452e9feae7b4a322 (diff)
add kind:12
-rw-r--r--29.md21
1 files changed, 18 insertions, 3 deletions
diff --git a/29.md b/29.md
index 6c36377..9d0dbb5 100644
--- a/29.md
+++ b/29.md
@@ -4,7 +4,7 @@ NIP-29
4Relay-based Groups 4Relay-based Groups
5------------------ 5------------------
6 6
7`draft` `optional` `author:fiatjaf` 7`draft` `optional`
8 8
9This NIP defines a standard for groups that are only writable by a closed set of users. They can be public for reading by external users or not. 9This NIP defines a standard for groups that are only writable by a closed set of users. They can be public for reading by external users or not.
10 10
@@ -38,9 +38,9 @@ Relays must strip the signature of messages in groups that are `private` so they
38 38
39## Event definitions 39## Event definitions
40 40
41- *text note* (`kind:11`) 41- *text root note* (`kind:11`)
42 42
43This is the basic unit of a "microblog" text note sent to a group. 43This is the basic unit of a "microblog" root text note sent to a group.
44 44
45```js 45```js
46 "kind": 11, 46 "kind": 11,
@@ -52,6 +52,21 @@ This is the basic unit of a "microblog" text note sent to a group.
52 ... 52 ...
53``` 53```
54 54
55- *text reply note* (`kind:12`)
56
57This is the basic unit of a "microblog" reply note sent to a group.
58
59```js
60 "kind": 12,
61 "content": "pizza is disgusting and you should be ashamed",
62 "tags": [
63 ["h", "<group-id>"],
64 [ "e", "<reply-event-id>"],
65 ["previous", "<event-id>", "<event-id>", ...]
66 ]
67 ...
68```
69
55- *chat message* (`kind:9`) 70- *chat message* (`kind:9`)
56 71
57Similar to `kind:11`, this is the basic unit of a chat message sent to a group. 72Similar to `kind:11`, this is the basic unit of a chat message sent to a group.