mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-01-18 12:11:33 +00:00
Adds Opengraph iMeta
This commit is contained in:
parent
c91098af86
commit
a978d74a77
29
92.md
29
92.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user