mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
Merge pull request #777 from arthurfranca/94-tags
Add preview and caption tags to nip94
This commit is contained in:
commit
d6f4598ad6
12
94.md
12
94.md
|
@ -21,6 +21,10 @@ 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
|
||||||
|
* `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
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -37,9 +41,13 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
|
||||||
["dim", <size of file in pixels>],
|
["dim", <size of file in pixels>],
|
||||||
["magnet",<magnet URI> ],
|
["magnet",<magnet URI> ],
|
||||||
["i",<torrent infohash>],
|
["i",<torrent infohash>],
|
||||||
["blurhash", <value>]
|
["blurhash", <value>],
|
||||||
|
["thumb", <string with thumbnail URI>],
|
||||||
|
["image", <string with preview URI>],
|
||||||
|
["summary", <excerpt>],
|
||||||
|
["alt", <description>]
|
||||||
],
|
],
|
||||||
"content": <description>,
|
"content": <caption>,
|
||||||
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user