Merge a978d74a778c9b37636f42bcdbd3782c7c791bfe into 0619f370bca3485bb9c5870bc2defa03c7c3d10e

This commit is contained in:
Vitor Pamplona 2025-03-20 02:38:37 +09:00 committed by GitHub
commit 162cf5cd84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

29
92.md
View File

@ -34,6 +34,35 @@ any field specified by [NIP 94](./94.md). There SHOULD be only one `imeta` tag p
}
```
## URL Preview Cards
`iog` ("inline open graph") tags add Open Graph information to help Clients assemble preview cards without having to ping the url for more information. Each `iog` tag SHOULD match a URL in the event content.
Since Open Graph tags include a thumb `image` for the URL, [NIP 94](./94.md) labels can be added to the `iog` to provide more information about that thumbnail.
```jsonc
{
"content": "Url preview cards metadata tests https://nostr.org",
"kind": 1,
"tags": [
[
"iog",
"url https://nostr.org",
"type website",
"title Notes and Other Stuff Transmitted by Relays",
"description Come join us on Nostr, a new protocol for more than socializing",
"image https://nostr.org/assets/images/home/social-nostr.png"
// these are associated with https://nostr.org/assets/images/home/social-nostr.png
"m image/png",
"blurhash L22?E{q;MacoswtDbWaJL#cppbi1",
"dim 1200x630",
"x <sha256 hash as specified in NIP 94>"
]
]
}
```
## Recommended client behavior
When uploading files during a new post, clients MAY include this metadata