DEV: updates discourse-emojis to 1.0.44 (#35529)

This version corrects a bug where fluentui emojis didn't have a
transparent background. To ensure the cache is cleared and we don't
serve incorrect emojis anymore we had to bump the emoji version.
This commit is contained in:
Joffrey JAFFEUX
2025-10-22 10:09:16 +02:00
committed by GitHub
parent b19583e253
commit 3b999bf6bb
4 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ GEM
diffy (3.4.4)
digest (3.2.0)
digest-xxhash (0.2.9)
discourse-emojis (1.0.42)
discourse-emojis (1.0.44)
discourse-fonts (0.0.19)
discourse-seed-fu (2.3.12)
activerecord (>= 3.1)
@@ -949,7 +949,7 @@ CHECKSUMS
diffy (3.4.4) sha256=79384ab5ca82d0e115b2771f0961e27c164c456074bd2ec46b637ebf7b6e47e3
digest (3.2.0) sha256=fa2e7092ec683f65d82fadde5ff4ca3b32e23ee0b19f1fc1a5e09993ad2d3991
digest-xxhash (0.2.9) sha256=a989d8309c03c4136a4bea9981ec0a146a2750de7f3dfb7b5624a3038aa598d7
discourse-emojis (1.0.42) sha256=492d6d103e9ffda3bf70ce5dae8ca66992c0d179f12bd8b599b41ec3f9d232df
discourse-emojis (1.0.44) sha256=63425a32379fb471d58f5eac9a1e931fc5a94efb7d327f71f1580af4dfe4edb3
discourse-fonts (0.0.19) sha256=78d4ddd671615908303a675427039d8d787c935e6deae184c6e143c18c6e0033
discourse-seed-fu (2.3.12) sha256=4f61d95c11ed54609046cd04eb3a51b531c5fa863fa86d1bea7d74264e5c75e4
discourse_ai-tokenizers (0.3.1) sha256=a7752f2f7b4b29fea148e2c893b287a1478c4dc8828f684c09e51d5a33bbc373
@@ -1,3 +1,4 @@
import { IMAGE_VERSION as v } from "pretty-text/emoji/version";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
import pretender, { response } from "discourse/tests/helpers/create-pretender";
@@ -80,7 +81,7 @@ module(
],
"hashtag with emoji": [
"Time for #coffee",
'<p>Time for <a class="hashtag-cooked" data-name="coffee" data-processed="true" contenteditable="false" draggable="true"><span class=\"hashtag-category-emoji hashtag-color--category-3\"><img width=\"20\" height=\"20\" src=\"/images/emoji/twitter/coffee.png?v=14\" title=\"coffee\" alt=\"coffee\" class=\"emoji\"></span>coffee</a></p>',
`<p>Time for <a class="hashtag-cooked" data-name="coffee" data-processed="true" contenteditable="false" draggable="true"><span class=\"hashtag-category-emoji hashtag-color--category-3\"><img width=\"20\" height=\"20\" src=\"/images/emoji/twitter/coffee.png?v=${v}\" title=\"coffee\" alt=\"coffee\" class=\"emoji\"></span>coffee</a></p>`,
"Time for #coffee",
],
"hashtag with icon": [
@@ -90,7 +91,7 @@ module(
],
"hashtag with emoji in text": [
"#welcome",
'<p><a class="hashtag-cooked" data-name="welcome" data-processed="true" contenteditable="false" draggable="true"><span class=\"hashtag-category-square hashtag-color--category-5\"></span>hello <img width=\"20\" height=\"20\" src=\"/images/emoji/twitter/wave.png?v=14\" title=\"wave\" alt=\"wave\" class=\"emoji\"></a></p>',
`<p><a class="hashtag-cooked" data-name="welcome" data-processed="true" contenteditable="false" draggable="true"><span class=\"hashtag-category-square hashtag-color--category-5\"></span>hello <img width=\"20\" height=\"20\" src=\"/images/emoji/twitter/wave.png?v=${v}\" title=\"wave\" alt=\"wave\" class=\"emoji\"></a></p>`,
"#welcome",
],
};
@@ -1,4 +1,4 @@
// DO NOT EDIT THIS FILE!!!
// Update it by running `rake javascript:update_constants`
export const IMAGE_VERSION = "14";
export const IMAGE_VERSION = "15";
+1 -1
View File
@@ -2,7 +2,7 @@
class Emoji
# update this to clear the cache
EMOJI_VERSION = "14"
EMOJI_VERSION = "15"
FITZPATRICK_SCALE = %w[1f3fb 1f3fc 1f3fd 1f3fe 1f3ff]