diff options
| author | arthurfranca <arthur.a.franca@gmail.com> | 2023-09-12 10:49:21 -0300 |
|---|---|---|
| committer | arthurfranca <arthur.a.franca@gmail.com> | 2023-09-12 10:49:21 -0300 |
| commit | de15edb04a7b6dc36bc6d5eaba26fb49e54b300e (patch) | |
| tree | ec1ebc1ef34df8344f5fdb7f8aa82a04e85e6a6d | |
| parent | 67cf855c8448c78010cd0d3ed8f19ddfeb1d2606 (diff) | |
Invert caption and alt
| -rw-r--r-- | 94.md | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -22,7 +22,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 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 | * `preview` (optional) shorter file variant such as thumbnail, blurred image or text excerpt |
| 25 | * `caption` (optional) loose description not meant for accessibility | 25 | * `alt` (optional) description for accessibility |
| 26 | 26 | ||
| 27 | ```json | 27 | ```json |
| 28 | { | 28 | { |
| @@ -41,9 +41,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 41 | ["i",<torrent infohash>], | 41 | ["i",<torrent infohash>], |
| 42 | ["blurhash", <value>], | 42 | ["blurhash", <value>], |
| 43 | ["preview", <preview url/text>, <MIME type>], | 43 | ["preview", <preview url/text>, <MIME type>], |
| 44 | ["caption", <string with loose description>] | 44 | ["alt", <description>] |
| 45 | ], | 45 | ], |
| 46 | "content": <description>, | 46 | "content": <caption>, |
| 47 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> | 47 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> |
| 48 | } | 48 | } |
| 49 | ``` | 49 | ``` |