Use r tag for non-media urls to avoid confusion

This commit is contained in:
arthurfranca 2023-11-01 11:47:36 -03:00
parent f2c72ad712
commit e9ad334848

6
54.md
View File

@ -42,8 +42,8 @@ Multiple array values use repeated names and are positioned in the same order of
## Tag Usage
When publishing events of kinds designed with urls inside tags instead of in `.content`, use `media` tags specifically for images and videos
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.
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 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:
@ -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"]`
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