diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2023-09-27 12:01:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-27 12:01:41 -0400 |
| commit | d6f4598ad6d32b46de6444f39339819faab670d5 (patch) | |
| tree | 5ed0764ecf5eae2cc978c7e39c1c28b00a5ec56a | |
| parent | f3bafe5f872be937060071585296b62584a4f416 (diff) | |
| parent | 4b2cd78defb1564bdc534c01f7f0f6cd230077f8 (diff) | |
Merge pull request #777 from arthurfranca/94-tags
Add preview and caption tags to nip94
| -rw-r--r-- | 94.md | 12 |
1 files changed, 10 insertions, 2 deletions
| @@ -21,6 +21,10 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 21 | * `magnet` (optional) URI to magnet file | 21 | * `magnet` (optional) URI to magnet file |
| 22 | * `i` (optional) torrent infohash | 22 | * `i` (optional) torrent infohash |
| 23 | * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client | 23 | * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client |
| 24 | * `thumb` (optional) url of thumbnail with same aspect ratio | ||
| 25 | * `image` (optional) url of preview image with same dimensions | ||
| 26 | * `summary` (optional) text excerpt | ||
| 27 | * `alt` (optional) description for accessibility | ||
| 24 | 28 | ||
| 25 | ```json | 29 | ```json |
| 26 | { | 30 | { |
| @@ -37,9 +41,13 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 37 | ["dim", <size of file in pixels>], | 41 | ["dim", <size of file in pixels>], |
| 38 | ["magnet",<magnet URI> ], | 42 | ["magnet",<magnet URI> ], |
| 39 | ["i",<torrent infohash>], | 43 | ["i",<torrent infohash>], |
| 40 | ["blurhash", <value>] | 44 | ["blurhash", <value>], |
| 45 | ["thumb", <string with thumbnail URI>], | ||
| 46 | ["image", <string with preview URI>], | ||
| 47 | ["summary", <excerpt>], | ||
| 48 | ["alt", <description>] | ||
| 41 | ], | 49 | ], |
| 42 | "content": <description>, | 50 | "content": <caption>, |
| 43 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> | 51 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> |
| 44 | } | 52 | } |
| 45 | ``` | 53 | ``` |