mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-26 18:25:51 -05:00
change 'download' from boolean to string
This commit is contained in:
parent
b49c491880
commit
76b35b9c82
4
94.md
4
94.md
|
@ -21,7 +21,7 @@ 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
|
||||||
* `download` (optional) expresses that this file is intended to be presented as a download link, rather than played inline. Client's may choose to ignore this.
|
* `download` (optional) expresses that this file is intended to be presented as a download link, rather than played inline. Client's may choose to ignore this. Use "1" for true, "0" for false.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ 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>],
|
||||||
["download", <boolean>]
|
["download", <value>]
|
||||||
],
|
],
|
||||||
"content": <description>,
|
"content": <description>,
|
||||||
"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