upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2024-02-01 15:47:51 -0600
committerfiatjaf_ <fiatjaf@gmail.com>2024-02-01 20:57:46 -0300
commit716234149a2544cd59c7f4d04608e71b4fc7aab3 (patch)
tree6c75378c58c0a6c6d130b2ab5567d99bf68bcd91
parent1ac28115eece4e0c85636ecd109ed113e9d37fd9 (diff)
NIP-29: add to NIPs list, improve preamble phrasing
-rw-r--r--29.md14
-rw-r--r--README.md1
2 files changed, 8 insertions, 7 deletions
diff --git a/29.md b/29.md
index 8c990bb..dafd51c 100644
--- a/29.md
+++ b/29.md
@@ -1,13 +1,12 @@
1NIP029 1NIP-29
2====== 2======
3 3
4imeta 4Media Attachments
5-------------- 5-----------------
6 6
7`imeta` is a tag for adding media attachments to events. `imeta` tags MUST match URLs 7Media 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.
8in the event content. Clients may replace imeta URLs with rich previews. `imeta` tags 8
9contain 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.
10a better experience when loading images.
11 10
12The `imeta` tag is variadic, and each entry is a space-delimited key/value pair. 11The `imeta` tag is variadic, and each entry is a space-delimited key/value pair.
13Each `imeta` tag MUST have a `url`, and at least one other field. `imeta` may include 12Each `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",
diff --git a/README.md b/README.md
index 10b1dfb..28d016b 100644
--- a/README.md
+++ b/README.md
@@ -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)