change 'download' from boolean to string

This commit is contained in:
Michael Hall 2023-07-08 14:01:32 -04:00 committed by GitHub
parent b49c491880
commit 76b35b9c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
94.md
View File

@ -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>