diff options
| author | Kieran <kieran@harkin.me> | 2024-10-15 11:15:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 11:15:54 +0100 |
| commit | 1e2f19863ca56754daa2466881eb22087a71b17d (patch) | |
| tree | 4f7be759dce290fea1d3ae10c403260b466ee16c /02.md | |
| parent | 53afaaece61f02e92b5ef9c3e9c32945c7ebf522 (diff) | |
| parent | e381b577c997b849fa544eea7dc9f08b360b4a33 (diff) | |
Merge branch 'master' into nip71-imeta
Diffstat (limited to '02.md')
| -rw-r--r-- | 02.md | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -8,11 +8,13 @@ Follow List | |||
| 8 | 8 | ||
| 9 | A special event with kind `3`, meaning "follow list" is defined as having a list of `p` tags, one for each of the followed/known profiles one is following. | 9 | A special event with kind `3`, meaning "follow list" is defined as having a list of `p` tags, one for each of the followed/known profiles one is following. |
| 10 | 10 | ||
| 11 | Each tag entry should contain the key for the profile, a relay URL where events from that key can be found (can be set to an empty string if not needed), and a local name (or "petname") for that profile (can also be set to an empty string or not provided), i.e., `["p", <32-bytes hex key>, <main relay URL>, <petname>]`. The `content` can be anything and should be ignored. | 11 | Each tag entry should contain the key for the profile, a relay URL where events from that key can be found (can be set to an empty string if not needed), and a local name (or "petname") for that profile (can also be set to an empty string or not provided), i.e., `["p", <32-bytes hex key>, <main relay URL>, <petname>]`. |
| 12 | |||
| 13 | The `.content` is not used. | ||
| 12 | 14 | ||
| 13 | For example: | 15 | For example: |
| 14 | 16 | ||
| 15 | ```json | 17 | ```jsonc |
| 16 | { | 18 | { |
| 17 | "kind": 3, | 19 | "kind": 3, |
| 18 | "tags": [ | 20 | "tags": [ |
| @@ -21,7 +23,7 @@ For example: | |||
| 21 | ["p", "612ae..e610f", "ws://carolrelay.com/ws", "carol"] | 23 | ["p", "612ae..e610f", "ws://carolrelay.com/ws", "carol"] |
| 22 | ], | 24 | ], |
| 23 | "content": "", | 25 | "content": "", |
| 24 | ...other fields | 26 | // other fields... |
| 25 | } | 27 | } |
| 26 | ``` | 28 | ``` |
| 27 | 29 | ||