deprecate the 30001 ad-hoc pin/bookmark/communities lists and use new kinds.

This commit is contained in:
fiatjaf 2023-11-15 15:32:09 -03:00
parent fd288d4ea9
commit 54befcc09a
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
2 changed files with 16 additions and 12 deletions

17
51.md
View File

@ -30,12 +30,12 @@ rely on them to augment the user profile or browsing experience.
For example, _mute lists_ can contain the public keys of spammers and bad actors users don't want to see in For example, _mute lists_ can contain the public keys of spammers and bad actors users don't want to see in
their feeds or receive annoying notifications from. their feeds or receive annoying notifications from.
| name | kind | "d" tag | description | expected tag items | | name | kind | description | expected tag items |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- |
| Mute list | 10000 | | things the user doesn't want to see in their feeds | `"p"` (pubkeys), `"t"` (hashtags) | | Mute list | 10000 | things the user doesn't want to see in their feeds | `"p"` (pubkeys), `"t"` (hashtags) |
| Bookmarks list | 30001 | `"bookmark"` | things the user intends to save for the future | `"e"` (kind:1 notes), `"a"` (kind:30023 articles) | | Pin list | 10001 | events the user intends to showcase in their profile page | `"e"` (kind:1 notes) |
| Pin list | 30001 | `"pin"` | events the user intends to showcase in their profile page | `"e"` (kind:1 notes) | | Bookmarks list | 10003 | things the user intends to save for the future | `"e"` (kind:1 notes), `"a"` (kind:30023 articles) |
| Communities list | 30001 | `"communities"` | [NIP-72](72.md) communities the user belongs to | `"a"` (kind:34550 community definitions) | | Communities list | 10004 | [NIP-72](72.md) communities the user belongs to | `"a"` (kind:34550 community definitions) |
## Sets ## Sets
@ -59,11 +59,12 @@ Aside from their main identifier, the `"d"` tag, sets can optionally have a `"ti
Some clients have used these lists in the past, but they should work on transitioning to the [standard formats](#standard-lists) above: Some clients have used these lists in the past, but they should work on transitioning to the [standard formats](#standard-lists) above:
- kind:30000 and `d` "mute"
| kind | "d" tag | use instead | | kind | "d" tag | use instead |
| --- | --- | --- | | --- | --- | --- |
| 30000 | `"mute"` | kind 10000 _mute list_ | | 30000 | `"mute"` | kind 10000 _mute list_ |
| 30001 | `"pin"` | kind 10001 _pin list_ |
| 30001 | `"bookmark"` | kind 10003 _bookmarks list_ |
| 30001 | `"communities"` | kind 10004 _communities list_ |
## Examples ## Examples

View File

@ -105,8 +105,11 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
| `9734` | Zap Request | [57](57.md) | | `9734` | Zap Request | [57](57.md) |
| `9735` | Zap | [57](57.md) | | `9735` | Zap | [57](57.md) |
| `9802` | Highlights | [84](84.md) | | `9802` | Highlights | [84](84.md) |
| `10000` | Mute list | [65](65.md) | | `10000` | Mute list | [51](51.md) |
| `10001` | Pin list | [51](51.md) |
| `10002` | Relay List Metadata | [65](65.md) | | `10002` | Relay List Metadata | [65](65.md) |
| `10003` | Bookmark list | [51](51.md) |
| `10004` | Communities list | [51](51.md) |
| `13194` | Wallet Info | [47](47.md) | | `13194` | Wallet Info | [47](47.md) |
| `22242` | Client Authentication | [42](42.md) | | `22242` | Client Authentication | [42](42.md) |
| `23194` | Wallet Request | [47](47.md) | | `23194` | Wallet Request | [47](47.md) |