diff options
| author | arthurfranca <arthur.a.franca@gmail.com> | 2023-09-12 11:58:34 -0300 |
|---|---|---|
| committer | arthurfranca <arthur.a.franca@gmail.com> | 2023-09-12 12:03:48 -0300 |
| commit | 30c799b00148c687b693331cd169c9ed20b93515 (patch) | |
| tree | d55b4684c1c2d152e6dc25f5bf480bc5951ad06c /94.md | |
| parent | de15edb04a7b6dc36bc6d5eaba26fb49e54b300e (diff) | |
Expand preview into other tags
Diffstat (limited to '94.md')
| -rw-r--r-- | 94.md | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -21,7 +21,9 @@ 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 | * `preview` (optional) shorter file variant such as thumbnail, blurred image or text excerpt | 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 | ||
| 25 | * `alt` (optional) description for accessibility | 27 | * `alt` (optional) description for accessibility |
| 26 | 28 | ||
| 27 | ```json | 29 | ```json |
| @@ -40,7 +42,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 40 | ["magnet",<magnet URI> ], | 42 | ["magnet",<magnet URI> ], |
| 41 | ["i",<torrent infohash>], | 43 | ["i",<torrent infohash>], |
| 42 | ["blurhash", <value>], | 44 | ["blurhash", <value>], |
| 43 | ["preview", <preview url/text>, <MIME type>], | 45 | ["thumb", <string with thumbnail URI>], |
| 46 | ["image", <string with preview URI>], | ||
| 47 | ["summary", <excerpt>], | ||
| 44 | ["alt", <description>] | 48 | ["alt", <description>] |
| 45 | ], | 49 | ], |
| 46 | "content": <caption>, | 50 | "content": <caption>, |