From eeb532b5ff936a48caaef8b7540342e0b6795166 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Mon, 2 Mar 2026 16:01:13 +0100 Subject: feat: add optional emoji set address to emoji tags (#2247) --- 30.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/30.md b/30.md index 54a8b37..c9b9ebe 100644 --- a/30.md +++ b/30.md @@ -9,13 +9,14 @@ Custom Emoji 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: ``` -["emoji", , ] +["emoji", , , ] ``` Where: - `` is a name given for the emoji, which MUST be comprised of only alphanumeric characters and underscores. - `` is a URL to the corresponding image file of the emoji. +- `` is an optional address pointer (`kind:pubkey:d-tag`) to the kind 30030 emoji set ([NIP-51](51.md)) the emoji belongs to. For each emoji tag, clients should parse emoji shortcodes (aka "emojify") like `:shortcode:` in the event to display custom emoji. @@ -46,7 +47,7 @@ In kind 1 events, the `content` should be emojified. "kind": 1, "content": "Hello :gleasonator: 😂 :ablobcatrainbow: :disputed: yolo", "tags": [ - ["emoji", "ablobcatrainbow", "https://gleasonator.com/emoji/blobcat/ablobcatrainbow.png"], + ["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"] ], -- cgit v1.2.3