Enforces certain media types

This commit is contained in:
Vitor Pamplona 2024-10-27 20:30:27 -04:00
parent 66c5cc637f
commit 9517ac6f5d

11
68.md
View File

@ -58,6 +58,9 @@ They may contain multiple images to be displayed as a single post.
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>"],
["p", "<32-bytes hex of a pubkey>", "<optional recommended relay URL>"],
// Specify the media type for filters to allow clients to filter by supported kinds
["m", "image/jpeg"]
// Hashtags
["t", "<tag>"],
["t", "<tag>"],
@ -67,4 +70,12 @@ They may contain multiple images to be displayed as a single post.
The `imeta` tag `annotate-user` places a user link in the specific position in the image.
Only the following media types are accepted:
- `image/apng`: Animated Portable Network Graphics (APNG)
- `image/avif`: AV1 Image File Format (AVIF)
- `image/gif`: Graphics Interchange Format (GIF)
- `image/jpeg`: Joint Photographic Expert Group image (JPEG)
- `image/png`: Portable Network Graphics (PNG)
- `image/webp`: Web Picture format (WEBP)
Picture events might be used with [NIP-71](71.md)'s kind `34236` to display short vertical videos in the same feed.