mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 02:46:24 +00:00
allow underscores in an emoji shortcode
This commit is contained in:
parent
835ec26141
commit
ccbdfb95c1
4
30.md
4
30.md
@ -14,7 +14,7 @@ Custom emoji may be added to **kind 0** and **kind 1** events by including one o
|
|||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
- `<shortcode>` is a name given for the emoji, which MUST be comprised of only alphanumeric characters.
|
- `<shortcode>` is a name given for the emoji, which MUST be comprised of only alphanumeric characters and underscores.
|
||||||
- `<image-url>` is a URL to the corresponding image file of the emoji.
|
- `<image-url>` is a URL to the corresponding image file of the emoji.
|
||||||
|
|
||||||
For each emoji tag, clients should parse emoji shortcodes (aka "emojify") like `:shortcode:` in the event to display custom emoji.
|
For each emoji tag, clients should parse emoji shortcodes (aka "emojify") like `:shortcode:` in the event to display custom emoji.
|
||||||
@ -53,4 +53,4 @@ In kind 1 events, the `content` should be emojified.
|
|||||||
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
|
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
|
||||||
"created_at": 1682630000
|
"created_at": 1682630000
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user