upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2024-07-23 15:28:35 -0500
committerGitHub <noreply@github.com>2024-07-23 15:28:35 -0500
commit0227a2cd97637724f2adb7bb05cc9273ff1234f6 (patch)
tree88ea132816e5ae27dd9d3066a9abbd5a6f453897
parent932f29d5411ada6d18796d2e0e580337c3f41146 (diff)
parent9c54549f1842245b842d8a66f3bade744da24189 (diff)
Merge pull request #1372 from alexgleason/nip01-order
NIP-01: sort events by id after created_at
-rw-r--r--01.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/01.md b/01.md
index c7d7273..1da6e83 100644
--- a/01.md
+++ b/01.md
@@ -143,7 +143,7 @@ All conditions of a filter that are specified must match for an event for it to
143 143
144A `REQ` message may contain multiple filters. In this case, events that match any of the filters are to be returned, i.e., multiple filters are to be interpreted as `||` conditions. 144A `REQ` message may contain multiple filters. In this case, events that match any of the filters are to be returned, i.e., multiple filters are to be interpreted as `||` conditions.
145 145
146The `limit` property of a filter is only valid for the initial query and MUST be ignored afterwards. When `limit: n` is present it is assumed that the events returned in the initial query will be the last `n` events ordered by the `created_at`. It is safe to return less events than `limit` specifies, but it is expected that relays do not return (much) more events than requested so clients don't get unnecessarily overwhelmed by data. 146The `limit` property of a filter is only valid for the initial query and MUST be ignored afterwards. When `limit: n` is present it is assumed that the events returned in the initial query will be the last `n` events ordered by the `created_at`. Newer events should appear first, and in the case of ties the event with the lowest id (first in lexical order) should be first. It is safe to return less events than `limit` specifies, but it is expected that relays do not return (much) more events than requested so clients don't get unnecessarily overwhelmed by data.
147 147
148### From relay to client: sending events and notices 148### From relay to client: sending events and notices
149 149