Add event kind 1111 (NIP-22) to NIP-30 (#2448)

This commit is contained in:
Sebastian Hagens
2026-08-25 07:58:34 -03:00
committed by GitHub
parent 13664fb18a
commit 735a25e44b
+18 -2
View File
@@ -6,7 +6,7 @@ Custom Emoji
`draft` `optional`
Custom emoji may be added to **kind 0**, **kind 1**, **kind 7** ([NIP-25](25.md)) and **kind 30315** ([NIP-38](38.md)) events by including one or more `"emoji"` tags, in the form:
Custom emoji may be added to **kind 0**, **kind 1**, **kind 1111** ([NIP-22](22.md)), **kind 7** ([NIP-25](25.md)) and **kind 30315** ([NIP-38](38.md)) events by including one or more `"emoji"` tags, in the form:
```
["emoji", <shortcode>, <image-url>, <emoji-set-address>]
@@ -46,7 +46,7 @@ In kind 1 events, the `content` should be emojified.
{
"kind": 1,
"content": "Hello :gleasonator: 😂 :ablobcatrainbow: :disputed: yolo",
"tags": [
"tags": [
["emoji", "ablobcatrainbow", "https://gleasonator.com/emoji/blobcat/ablobcatrainbow.png", "30030:79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6:blobcats"],
["emoji", "disputed", "https://gleasonator.com/emoji/Fun/disputed.png"],
["emoji", "gleasonator", "https://gleasonator.com/emoji/Gleasonator/gleasonator.png"]
@@ -56,6 +56,22 @@ In kind 1 events, the `content` should be emojified.
}
```
### Kind 1111 events
In kind 1111 events, the `content` should be emojified.
```json
{
"kind": 1111,
"content": "Let's party! :hyves_banaan:",
"tags": [
["emoji", "hyves_banaan", "https://relay.nyves.nl/8408b236b11fe5c764d139d37e670d5207b3825fe6396392799b02c4e6bd2ebf.gif", "30030:9919981db5d9f59713bd717069212c32a19b55f2280a51e70c49c5b73da306b9:Hyves"]
],
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"created_at": 1682630000
}
```
### Kind 7 events
In kind 7 events, the `content` should be emojified.