Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Open Graph "iMeta" tags #1674

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions 92.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down