diff options
| author | Cody Casterline <cody.casterline@gmail.com> | 2024-07-05 09:31:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 01:31:23 +0900 |
| commit | 8c47577ecb6b3ae6ad840e5b4d187a3f3a6b97c8 (patch) | |
| tree | 82c9a050b0939f322628c9a0401788dbe2111401 | |
| parent | cc7cdd5a80069775171887688dd53ee23a3a2686 (diff) | |
More precisely document since/until bounds. (#1284)
* More precisely document since/until bounds.
Lower in this document, this is expressed as "since <= created_at <= until".
But the English description said that these values had to be "newer than" or "older than".
These two were in conflict. I assume the inclusive behavior is the intended one, since that documentation was added later to clarify. This just makes both cases match.
* Update 01.md
Co-authored-by: Alex Gleason <alex@alexgleason.me>
* Update 01.md
Co-authored-by: Alex Gleason <alex@alexgleason.me>
---------
Co-authored-by: Alex Gleason <alex@alexgleason.me>
| -rw-r--r-- | 01.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -125,8 +125,8 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th | |||
| 125 | "authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>, | 125 | "authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>, |
| 126 | "kinds": <a list of a kind numbers>, | 126 | "kinds": <a list of a kind numbers>, |
| 127 | "#<single-letter (a-zA-Z)>": <a list of tag values, for #e — a list of event ids, for #p — a list of pubkeys, etc.>, | 127 | "#<single-letter (a-zA-Z)>": <a list of tag values, for #e — a list of event ids, for #p — a list of pubkeys, etc.>, |
| 128 | "since": <an integer unix timestamp in seconds, events must be newer than this to pass>, | 128 | "since": <an integer unix timestamp in seconds. Events must have a created_at >= to this to pass>, |
| 129 | "until": <an integer unix timestamp in seconds, events must be older than this to pass>, | 129 | "until": <an integer unix timestamp in seconds. Events must have a created_at <= to this to pass>, |
| 130 | "limit": <maximum number of events relays SHOULD return in the initial query> | 130 | "limit": <maximum number of events relays SHOULD return in the initial query> |
| 131 | } | 131 | } |
| 132 | ``` | 132 | ``` |