upleb.uk

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

summaryrefslogtreecommitdiff
path: root/29.md
diff options
context:
space:
mode:
Diffstat (limited to '29.md')
-rw-r--r--29.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/29.md b/29.md
index de60ad5..a267ea7 100644
--- a/29.md
+++ b/29.md
@@ -24,9 +24,9 @@ Events sent by users to groups (chat messages, text notes, moderation events etc
24 24
25## Timeline references 25## Timeline references
26 26
27In order to not be used out of context, events sent to these groups may contain references to previous events seen from the same relay in the `previous` tag. The choice of which previous events to pick belongs to the clients. 27In order to not be used out of context, events sent to these groups may contain references to previous events seen from the same relay in the `previous` tag. The choice of which previous events to pick belongs to the clients. The references are to be made using the first 8 characters (4 bytes) of any event in the last 50 events seen by the user in the relay, excluding events by themselves. There can be any number of references (including zero), but it's recommended that clients include at least 3 and that relays enforce this.
28 28
29This is a hack to prevent messages from being broadcasted to external relays that have forks of one group out of context. Relays are expected to reject any events that contain timeline references to events not found in their own database. Clients must also check these to keep relays honest about them. 29This is a hack to prevent messages from being broadcasted to external relays that have forks of one group out of context. Relays are expected to reject any events that contain timeline references to events not found in their own database. Clients should also check these to keep relays honest about them.
30 30
31## Late publication 31## Late publication
32 32
@@ -47,7 +47,7 @@ This is the basic unit of a "microblog" root text note sent to a group.
47 "content": "hello my friends lovers of pizza", 47 "content": "hello my friends lovers of pizza",
48 "tags": [ 48 "tags": [
49 ["h", "<group-id>"], 49 ["h", "<group-id>"],
50 ["previous", "<event-id>", "<event-id>", ...] 50 ["previous", "<event-id-first-chars>", "<event-id-first-chars>", ...]
51 ] 51 ]
52 ... 52 ...
53``` 53```
@@ -62,7 +62,7 @@ This is the basic unit of a "microblog" reply note sent to a group.
62 "tags": [ 62 "tags": [
63 ["h", "<group-id>"], 63 ["h", "<group-id>"],
64 ["e", "<reply-event-id>", "", "root"], 64 ["e", "<reply-event-id>", "", "root"],
65 ["previous", "<event-id>", "<event-id>", ...] 65 ["previous", "<event-id-first-chars>", "<event-id-first-chars>", ...]
66 ] 66 ]
67 ... 67 ...
68``` 68```
@@ -81,7 +81,7 @@ Similar to `kind:11`, this is the basic unit of a chat message sent to a group.
81 "content": "hello my friends lovers of pizza", 81 "content": "hello my friends lovers of pizza",
82 "tags": [ 82 "tags": [
83 ["h", "<group-id>"], 83 ["h", "<group-id>"],
84 ["previous", "<event-id>", "<event-id>", ...] 84 ["previous", "<event-id-first-chars>", "<event-id-first-chars>", ...]
85 ] 85 ]
86 ... 86 ...
87``` 87```