diff options
| author | Alex Gleason <alex@alexgleason.me> | 2024-02-01 15:47:51 -0600 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2024-02-01 20:57:46 -0300 |
| commit | 716234149a2544cd59c7f4d04608e71b4fc7aab3 (patch) | |
| tree | 6c75378c58c0a6c6d130b2ab5567d99bf68bcd91 | |
| parent | 1ac28115eece4e0c85636ecd109ed113e9d37fd9 (diff) | |
NIP-29: add to NIPs list, improve preamble phrasing
| -rw-r--r-- | 29.md | 14 | ||||
| -rw-r--r-- | README.md | 1 |
2 files changed, 8 insertions, 7 deletions
| @@ -1,13 +1,12 @@ | |||
| 1 | NIP029 | 1 | NIP-29 |
| 2 | ====== | 2 | ====== |
| 3 | 3 | ||
| 4 | imeta | 4 | Media Attachments |
| 5 | -------------- | 5 | ----------------- |
| 6 | 6 | ||
| 7 | `imeta` is a tag for adding media attachments to events. `imeta` tags MUST match URLs | 7 | Media attachments (images, videos, and other files) may be added to events by including a URL in the event content, along with a matching `imeta` tag. |
| 8 | in the event content. Clients may replace imeta URLs with rich previews. `imeta` tags | 8 | |
| 9 | contain extra information about the media attachment, which clients can use to provide | 9 | `imeta` ("inline metadata") tags add information about media URLs in the event's content. Each `imeta` tag SHOULD match a URL in the event content. Clients may replace imeta URLs with rich previews. `imeta` tags contain extra information about the media attachment, which clients can use to provide a better experience when loading previews. |
| 10 | a better experience when loading images. | ||
| 11 | 10 | ||
| 12 | The `imeta` tag is variadic, and each entry is a space-delimited key/value pair. | 11 | The `imeta` tag is variadic, and each entry is a space-delimited key/value pair. |
| 13 | Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include | 12 | Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include |
| @@ -23,6 +22,7 @@ any field specified by [NIP 94](./94.md). There SHOULD be only one `imeta` tag p | |||
| 23 | [ | 22 | [ |
| 24 | "imeta", | 23 | "imeta", |
| 25 | "url https://nostr.build/i/my-image.jpg", | 24 | "url https://nostr.build/i/my-image.jpg", |
| 25 | "m image/jpeg", | ||
| 26 | "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", | 26 | "blurhash eVF$^OI:${M{o#*0-nNFxakD-?xVM}WEWB%iNKxvR-oetmo#R-aen$", |
| 27 | "dim 3024x4032", | 27 | "dim 3024x4032", |
| 28 | "alt A scenic photo overlooking the coast of Costa Rica", | 28 | "alt A scenic photo overlooking the coast of Costa Rica", |
| @@ -44,6 +44,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 44 | - [NIP-26: Delegated Event Signing](26.md) | 44 | - [NIP-26: Delegated Event Signing](26.md) |
| 45 | - [NIP-27: Text Note References](27.md) | 45 | - [NIP-27: Text Note References](27.md) |
| 46 | - [NIP-28: Public Chat](28.md) | 46 | - [NIP-28: Public Chat](28.md) |
| 47 | - [NIP-29: Media Attachments](29.md) | ||
| 47 | - [NIP-30: Custom Emoji](30.md) | 48 | - [NIP-30: Custom Emoji](30.md) |
| 48 | - [NIP-31: Dealing with Unknown Events](31.md) | 49 | - [NIP-31: Dealing with Unknown Events](31.md) |
| 49 | - [NIP-32: Labeling](32.md) | 50 | - [NIP-32: Labeling](32.md) |