diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:13:12 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-11-18 09:13:12 -0300 |
| commit | 5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (patch) | |
| tree | 4fff8694238b3ae5e692a8480869ad1266b95be4 /40.md | |
| parent | b0df71824f9967130b54150b64cc70fa94bffec2 (diff) | |
reformat a bunch of json things and small nitpicks.
Diffstat (limited to '40.md')
| -rw-r--r-- | 40.md | 24 |
1 files changed, 12 insertions, 12 deletions
| @@ -2,7 +2,7 @@ NIP-40 | |||
| 2 | ====== | 2 | ====== |
| 3 | 3 | ||
| 4 | Expiration Timestamp | 4 | Expiration Timestamp |
| 5 | ----------------------------------- | 5 | -------------------- |
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| @@ -20,14 +20,14 @@ values: | |||
| 20 | 20 | ||
| 21 | ```json | 21 | ```json |
| 22 | { | 22 | { |
| 23 | "pubkey": "<pub-key>", | 23 | "pubkey": "<pub-key>", |
| 24 | "created_at": 1000000000, | 24 | "created_at": 1000000000, |
| 25 | "kind": 1, | 25 | "kind": 1, |
| 26 | "tags": [ | 26 | "tags": [ |
| 27 | ["expiration", "1600000000"] | 27 | ["expiration", "1600000000"] |
| 28 | ], | 28 | ], |
| 29 | "content": "This message will expire at the specified timestamp and be deleted by relays.\n", | 29 | "content": "This message will expire at the specified timestamp and be deleted by relays.\n", |
| 30 | "id": "<event-id>" | 30 | "id": "<event-id>" |
| 31 | } | 31 | } |
| 32 | ``` | 32 | ``` |
| 33 | 33 | ||
| @@ -43,9 +43,9 @@ Clients SHOULD ignore events that have expired. | |||
| 43 | Relay Behavior | 43 | Relay Behavior |
| 44 | -------------- | 44 | -------------- |
| 45 | 45 | ||
| 46 | Relays MAY NOT delete expired messages immediately on expiration and MAY persist them indefinitely. | 46 | Relays MAY NOT delete expired messages immediately on expiration and MAY persist them indefinitely. |
| 47 | Relays SHOULD NOT send expired events to clients, even if they are stored. | 47 | Relays SHOULD NOT send expired events to clients, even if they are stored. |
| 48 | Relays SHOULD drop any events that are published to them if they are expired. | 48 | Relays SHOULD drop any events that are published to them if they are expired. |
| 49 | An expiration timestamp does not affect storage of ephemeral events. | 49 | An expiration timestamp does not affect storage of ephemeral events. |
| 50 | 50 | ||
| 51 | Suggested Use Cases | 51 | Suggested Use Cases |