nip73: change "k" tags standard for webpage comments to a hardcoded web (#1836)

This commit is contained in:
fiatjaf_ 2025-03-10 11:05:51 -03:00 committed by GitHub
parent 7a9e2ec87d
commit bf699c9bc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
73.md
View File

@ -14,8 +14,8 @@ There are certain established global content identifiers such as [Book ISBNs](ht
## Supported IDs
| Type | `i` tag | `k` tag |
|- | - | - |
| URLs | "`<URL, normalized, no fragment>`" | "`<scheme-host, normalized>`" |
| --- | --- | --- |
| URLs | "`<URL, normalized, no fragment>`" | "web" |
| Hashtags | "#`<topic, lowercase>`" | "#" |
| Geohashes | "geo:`<geohash, lowercase>`" | "geo" |
| Books | "isbn:`<id, without hyphens>`" | "isbn" |
@ -29,6 +29,17 @@ There are certain established global content identifiers such as [Book ISBNs](ht
## Examples
### Webpages
For the webpage "https://myblog.example.com/post/2012-03-27/hello-world" the "i" and "k" tags are:
```jsonc
[
["i","https://myblog.example.com/post/2012-03-27/hello-world"],
["k", "web"]
]
```
### Books:
- Book ISBN: `["i", "isbn:9780765382030"]` - https://isbnsearch.org/isbn/9780765382030
@ -56,5 +67,3 @@ Each `i` tag MAY have a url hint as the second argument to redirect people to a
`["i", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg]`
`["i", "isan:0000-0000-401A-0000-7", https://www.imdb.com/title/tt0120737]`