mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-24 09:25:52 -05:00
Use r tag for non-media urls to avoid confusion
This commit is contained in:
parent
f2c72ad712
commit
e9ad334848
6
54.md
6
54.md
|
@ -42,8 +42,8 @@ Multiple array values use repeated names and are positioned in the same order of
|
||||||
|
|
||||||
## Tag Usage
|
## Tag Usage
|
||||||
|
|
||||||
When publishing events of kinds designed with urls inside tags instead of in `.content`, use `media` tags specifically for images and videos
|
When publishing events of kinds designed with urls inside tags instead of in `.content`, use `media` tags specifically for image, audio and video
|
||||||
or else pick another tag. One may also add `media` tags to events to aid in loading media placeholders on clients that postpone or don't do event `.content` parsing.
|
or else pick another tag such as `r`. One may also add `media` tags to events to aid in loading media placeholders on clients that postpone or don't do event `.content` parsing.
|
||||||
|
|
||||||
### Tag Examples:
|
### Tag Examples:
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ An image with MIME type, dimensions and blurhash:
|
||||||
`["media", "https://xyz.com/image001.png#m=image%2Fpng&dim=1342x704&blurhash=MnR3f%2C%25M%252%25MjZ~Wj%40j%5Bt7Rjs%3Aayfkj%5BWB%5C"]`
|
`["media", "https://xyz.com/image001.png#m=image%2Fpng&dim=1342x704&blurhash=MnR3f%2C%25M%252%25MjZ~Wj%40j%5Bt7Rjs%3Aayfkj%5BWB%5C"]`
|
||||||
|
|
||||||
A kind 30023 event JSON file (with `nostr/30023` MIME type):
|
A kind 30023 event JSON file (with `nostr/30023` MIME type):
|
||||||
`["url", "https://xyz.com/example.json#m=nostr%2F30023"]`
|
`["r", "https://xyz.com/example.json#m=nostr%2F30023"]`
|
||||||
|
|
||||||
## Recommended client behavior
|
## Recommended client behavior
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user