mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-02-23 13:49:00 +00:00
Use 'd' tag for list identifier/title for consistency with NIP-51
- Replace title tag with 'd' tag to follow NIP-51 convention - Update tag description to clarify its purpose - Keep consistent with other list-type NIPs
This commit is contained in:
parent
0f2b4ab47c
commit
13c89d66f3
10
74.md
10
74.md
@ -35,7 +35,7 @@ The content field MUST be empty. All data is stored in tags.
|
|||||||
|
|
||||||
Required tags:
|
Required tags:
|
||||||
- `ll` ["list"] - Identifies this as a link list event
|
- `ll` ["list"] - Identifies this as a link list event
|
||||||
- `title` [list_title] - Name of the list
|
- `d` [identifier] - Identifier and title of the list
|
||||||
- `nl` [url, description, language?, direction?] - One or more link entries
|
- `nl` [url, description, language?, direction?] - One or more link entries
|
||||||
- `url`: The URL being shared (must follow protocol requirements)
|
- `url`: The URL being shared (must follow protocol requirements)
|
||||||
- `description`: Text description of the link (must be non-empty)
|
- `description`: Text description of the link (must be non-empty)
|
||||||
@ -46,7 +46,7 @@ Optional tags:
|
|||||||
- `lang` [code] - Default language for the list (ISO 639-1)
|
- `lang` [code] - Default language for the list (ISO 639-1)
|
||||||
- `dir` [direction] - Default text direction ("ltr" or "rtl")
|
- `dir` [direction] - Default text direction ("ltr" or "rtl")
|
||||||
- `t` [topic] - Topics/hashtags for discovery
|
- `t` [topic] - Topics/hashtags for discovery
|
||||||
- `summary` [text] - Brief description of the list
|
- `summary` [text] - Additional description of the list
|
||||||
- `image` [url] - Cover image for the list
|
- `image` [url] - Cover image for the list
|
||||||
|
|
||||||
### URL Protocol Support
|
### URL Protocol Support
|
||||||
@ -84,7 +84,7 @@ Extended Protocols:
|
|||||||
"kind": 30001,
|
"kind": 30001,
|
||||||
"tags": [
|
"tags": [
|
||||||
["ll", "list"],
|
["ll", "list"],
|
||||||
["title", "Mixed Protocol Resources"],
|
["d", "Mixed Protocol Resources"],
|
||||||
["nl", "https://example.com", "Web Resource"],
|
["nl", "https://example.com", "Web Resource"],
|
||||||
["nl", "magnet:?xt=urn:btih:...", "Linux ISO Torrent", null, null, "torrent"],
|
["nl", "magnet:?xt=urn:btih:...", "Linux ISO Torrent", null, null, "torrent"],
|
||||||
["nl", "ipfs://Qm...", "IPFS Document", null, null, "ipfs"],
|
["nl", "ipfs://Qm...", "IPFS Document", null, null, "ipfs"],
|
||||||
@ -108,7 +108,7 @@ Extended Protocols:
|
|||||||
"kind": 30001,
|
"kind": 30001,
|
||||||
"tags": [
|
"tags": [
|
||||||
["ll", "list"],
|
["ll", "list"],
|
||||||
["title", "Favorite Programming Resources"],
|
["d", "Favorite Programming Resources"],
|
||||||
["lang", "en"],
|
["lang", "en"],
|
||||||
["dir", "ltr"],
|
["dir", "ltr"],
|
||||||
["nl", "https://example.com/tutorial", "Great Python Tutorial"],
|
["nl", "https://example.com/tutorial", "Great Python Tutorial"],
|
||||||
@ -124,7 +124,7 @@ Extended Protocols:
|
|||||||
"kind": 30001,
|
"kind": 30001,
|
||||||
"tags": [
|
"tags": [
|
||||||
["ll", "list"],
|
["ll", "list"],
|
||||||
["title", "Global Dev Resources"],
|
["d", "Global Dev Resources"],
|
||||||
["lang", "en"],
|
["lang", "en"],
|
||||||
["dir", "ltr"],
|
["dir", "ltr"],
|
||||||
["nl", "https://example.com/docs", "Documentation"],
|
["nl", "https://example.com/docs", "Documentation"],
|
||||||
|
Loading…
Reference in New Issue
Block a user