Expand preview into other tags

This commit is contained in:
arthurfranca 2023-09-12 11:58:34 -03:00
parent de15edb04a
commit 30c799b001

8
94.md
View File

@ -21,7 +21,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
* `magnet` (optional) URI to magnet file * `magnet` (optional) URI to magnet file
* `i` (optional) torrent infohash * `i` (optional) torrent infohash
* `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client
* `preview` (optional) shorter file variant such as thumbnail, blurred image or text excerpt * `thumb` (optional) url of thumbnail with same aspect ratio
* `image` (optional) url of preview image with same dimensions
* `summary` (optional) text excerpt
* `alt` (optional) description for accessibility * `alt` (optional) description for accessibility
```json ```json
@ -40,7 +42,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
["magnet",<magnet URI> ], ["magnet",<magnet URI> ],
["i",<torrent infohash>], ["i",<torrent infohash>],
["blurhash", <value>], ["blurhash", <value>],
["preview", <preview url/text>, <MIME type>], ["thumb", <string with thumbnail URI>],
["image", <string with preview URI>],
["summary", <excerpt>],
["alt", <description>] ["alt", <description>]
], ],
"content": <caption>, "content": <caption>,