diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2023-03-12 08:37:40 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2023-03-12 08:37:40 -0400 |
| commit | 4a8378715c2e4e559731b319cac920c00cb32116 (patch) | |
| tree | a649f679011b4a272c6fbfcc0dddfee3e734272a | |
| parent | 655f40bb267cc6df82356a0422146e555b94cf99 (diff) | |
Allow for more emojis
| -rw-r--r-- | haunt/jakob/dynamic/util.scm | 8 | ||||
| -rw-r--r-- | haunt/static/js/comment-reaction.js | 14 |
2 files changed, 21 insertions, 1 deletions
diff --git a/haunt/jakob/dynamic/util.scm b/haunt/jakob/dynamic/util.scm index 92b2f25..82df409 100644 --- a/haunt/jakob/dynamic/util.scm +++ b/haunt/jakob/dynamic/util.scm @@ -94,6 +94,7 @@ Acceptable is the following subset: - The hand symbols from the 'Miscellaneous Symbols and Pictographs' block - The hand symbols from the 'Dingbats' block +- U+1F37B and U+1F440 Notably, U+1F946 isn't normally treated an emoji, but it is here. I think it should be! As an American, I should be able to use pictographs @@ -102,4 +103,9 @@ to express my God-given constitutional rights!" (= 1 (string-length str)) (let ((codepoint (char->integer (first (string->list str))))) - (and (>= codepoint #x1F600) (<= codepoint #x1F64F))))) + (or (<= #x1F600 codepoint #x1F64F) + (<= #x1F90C codepoint #x1F9FF) + (<= #x1F446 codepoint #x1F450) + (<= #x270A codepoint #x270D) + (= codepoint #x1F37B) + (= codepoint #x1F440))))) diff --git a/haunt/static/js/comment-reaction.js b/haunt/static/js/comment-reaction.js index 530abf0..76eccbd 100644 --- a/haunt/static/js/comment-reaction.js +++ b/haunt/static/js/comment-reaction.js @@ -61,6 +61,20 @@ function selectorWidget() { for (let i = 0x1F600; i < 0x1F64F; i++) { selector.appendElement(emojiButton(i)); } + selector.appendElement(emojiButton(0x1F37B)); + selector.appendElement(emojiButton(0x1F440)); + selector.appendElement(emojiButton(0x1F446)); + selector.appendElement(emojiButton(0x1F447)); + selector.appendElement(emojiButton(0x1F448)); + selector.appendElement(emojiButton(0x1F449)); + selector.appendElement(emojiButton(0x1F450)); + selector.appendElement(emojiButton(0x270A)); + selector.appendElement(emojiButton(0x270B)); + selector.appendElement(emojiButton(0x270C)); + selector.appendElement(emojiButton(0x270D)); + for (let i = 0x1F90C; i < 0x1F9FF; i++) { + selector.appendElement(emojiButton(i)); + } return selector; } |