upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/94.md
diff options
context:
space:
mode:
authorarthurfranca <arthur.a.franca@gmail.com>2023-09-12 11:58:34 -0300
committerarthurfranca <arthur.a.franca@gmail.com>2023-09-12 12:03:48 -0300
commit30c799b00148c687b693331cd169c9ed20b93515 (patch)
treed55b4684c1c2d152e6dc25f5bf480bc5951ad06c /94.md
parentde15edb04a7b6dc36bc6d5eaba26fb49e54b300e (diff)
Expand preview into other tags
Diffstat (limited to '94.md')
-rw-r--r--94.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/94.md b/94.md
index 8e47c27..c5e0f18 100644
--- a/94.md
+++ b/94.md
@@ -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>,