mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 17:05:51 -05:00
33 lines
1.2 KiB
Markdown
33 lines
1.2 KiB
Markdown
|
NIP-93
|
||
|
======
|
||
|
|
||
|
Profile Gallery
|
||
|
-----------------
|
||
|
|
||
|
This NIP defines curatable profile galleries that might be used across clients. The intention is that users might curate a gallery in their profile (or somewhere else) to show some of their visual content of choice, such as art, photographs etc.
|
||
|
|
||
|
The purpose of this NIP is to define an event Kind for Profile Galleries. A Gallery entry is a Kind 1163 Event consisting of an `e` tag and an `url` tag. The `url` tag must direct to a media file (such as an image or video) that will be shown in the gallery. The `e` tag should direct to a Kind 1 note containing this media file.
|
||
|
|
||
|
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"content": "",
|
||
|
"kind": 1163,
|
||
|
"tags": [
|
||
|
[
|
||
|
["e", <event id of kind 1 note >],
|
||
|
["url", <string with URI of file>],
|
||
|
]
|
||
|
]
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Recommended client behavior
|
||
|
|
||
|
Clients can filter kind 1163 events and show them ordered by created_at. Users might delete 1163 events and readd them later with another timestamp, so clients should consider that events might have been deleted.
|
||
|
|
||
|
Users do not necessarily need to use their own images or notes for their gallery. Accounts could currate their gallery based of content from others.
|