A platform for community discussion. Free, open, simple.
DEV: discourse-emojis 1.0.32 (#31669)
Joffrey JAFFEUX9dd26a3954fe
diff --git a/Gemfile.lock b/Gemfile.lockindex dcdab967e2a..edec0a3cf96 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -126,7 +126,7 @@ GEMdiffy (3.4.3)digest (3.2.0)digest-xxhash (0.2.9)- discourse-emojis (1.0.30)+ discourse-emojis (1.0.32)discourse-fonts (0.0.18)discourse-seed-fu (2.3.12)activerecord (>= 3.1)@@ -838,7 +838,7 @@ CHECKSUMSdiffy (3.4.3) sha256=4264b9e7db00d1cd426fcd32e36565779163cedc2340a95b0e6f025e71f9aaa7digest (3.2.0) sha256=fa2e7092ec683f65d82fadde5ff4ca3b32e23ee0b19f1fc1a5e09993ad2d3991digest-xxhash (0.2.9) sha256=a989d8309c03c4136a4bea9981ec0a146a2750de7f3dfb7b5624a3038aa598d7- discourse-emojis (1.0.30) sha256=494a276a769644c22f07b303a167818e178fc74360fbd22ad7e6160fe188a90d+ discourse-emojis (1.0.32) sha256=fa2d6adf74593238021eea601fac7b56aee6b5073a6dfbccf977c6f4f942498bdiscourse-fonts (0.0.18) sha256=a7d25c13edd3325ae40010ca277530d69fc7952a05aa7b2ff07c1d07412b72a1discourse-seed-fu (2.3.12) sha256=4f61d95c11ed54609046cd04eb3a51b531c5fa863fa86d1bea7d74264e5c75e4discourse_dev_assets (0.0.5) sha256=a09a801a210aa3f7247dd382dfd73b389d4bd02be86be675eca2d451f9898285diff --git a/app/assets/javascripts/discourse/tests/fixtures/emojis-fixtures.js b/app/assets/javascripts/discourse/tests/fixtures/emojis-fixtures.jsindex b0a3e494c47..30a0930435f 100644--- a/app/assets/javascripts/discourse/tests/fixtures/emojis-fixtures.js+++ b/app/assets/javascripts/discourse/tests/fixtures/emojis-fixtures.js@@ -1,10 +1,12 @@+import { IMAGE_VERSION as v } from "pretty-text/emoji/version";+export default {"/emojis.json": {favorites: [{name: "grinning",tonable: false,- url: "/images/emoji/twitter/grinning.png?v=13",+ url: `/images/emoji/twitter/grinning.png?v=${v}`,group: "smileys_\u0026_emotion",search_aliases: ["smiley_cat", "star_struck"],},@@ -13,14 +15,14 @@ export default {{name: "grinning",tonable: false,- url: "/images/emoji/twitter/grinning.png?v=13",+ url: `/images/emoji/twitter/grinning.png?v=${v}`,group: "smileys_\u0026_emotion",search_aliases: ["smiley_cat", "star_struck"],},{name: "smiley_cat",tonable: false,- url: "/images/emoji/twitter/smiley_cat.png?v=13",+ url: `/images/emoji/twitter/smiley_cat.png?v=${v}`,group: "smileys_\u0026_emotion",},],@@ -28,14 +30,14 @@ export default {{name: "raised_hands",tonable: true,- url: "/images/emoji/twitter/raised_hands.png?v=13",+ url: `/images/emoji/twitter/raised_hands.png?v=${v}`,group: "people_&_body",search_aliases: [],},{name: "man_rowing_boat",tonable: true,- url: "/images/emoji/twitter/man_rowing_boat.png?v=13",+ url: `/images/emoji/twitter/man_rowing_boat.png?v=${v}`,group: "people_&_body",search_aliases: [],},@@ -44,7 +46,7 @@ export default {{name: "womans_clothes",tonable: false,- url: "/images/emoji/twitter/womans_clothes.png?v=13",+ url: `/images/emoji/twitter/womans_clothes.png?v=${v}`,group: "objects",search_aliases: [],},diff --git a/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/emoji-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/emoji-test.gjsindex cbfa4e4d03c..c76f5a256d8 100644--- a/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/emoji-test.gjs+++ b/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/emoji-test.gjs@@ -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 { testMarkdown } from "discourse/tests/helpers/rich-editor-helper";@@ -11,14 +12,14 @@ module(emoji: [["Hey :tada:!",- '<p>Hey <img class="emoji" alt=":tada:" title=":tada:" src="/images/emoji/twitter/tada.png?v=13" contenteditable="false" draggable="true">!</p>',+ `<p>Hey <img class="emoji" alt=":tada:" title=":tada:" src="/images/emoji/twitter/tada.png?v=${v}" contenteditable="false" draggable="true">!</p>`,"Hey :tada:!",],],"emoji in heading": [["# Heading :information_source:",- '<h1>Heading <img class="emoji" alt=":information_source:" title=":information_source:" src="/images/emoji/twitter/information_source.png?v=13" contenteditable="false" draggable="true"></h1>',+ `<h1>Heading <img class="emoji" alt=":information_source:" title=":information_source:" src="/images/emoji/twitter/information_source.png?v=${v}" contenteditable="false" draggable="true"></h1>`,"# Heading :information_source:",],],diff --git a/app/assets/javascripts/pretty-text/addon/emoji/data.js b/app/assets/javascripts/pretty-text/addon/emoji/data.jsindex 084a31a9ebc..4c72d8b4d2a 100644--- a/app/assets/javascripts/pretty-text/addon/emoji/data.js+++ b/app/assets/javascripts/pretty-text/addon/emoji/data.js@@ -1102,7 +1102,7 @@ export const emojis = new Set(["sled","curling_stone","bullseye",- "yo_yo",+ "yoyo","kite","water_pistol","pool_8_ball",@@ -2667,7 +2667,7 @@ export const aliases = {running_shirt: ["running_shirt_with_sash"],skis: ["ski"],bullseye: ["dart"],- "yo-yo": ["yo_yo"],+ yoyo: ["yo_yo", "yo-yo"],water_pistol: ["gun"],pool_8_ball: ["8ball"],puzzle_piece: ["jigsaw"],@@ -5562,7 +5562,7 @@ export const replacements = {"π·": "sled","π₯": "curling_stone","π―": "bullseye",- "πͺ": "yo_yo",+ "πͺ": "yoyo","πͺ": "kite","π«": "water_pistol","π±": "pool_8_ball",diff --git a/app/assets/javascripts/pretty-text/addon/emoji/version.js b/app/assets/javascripts/pretty-text/addon/emoji/version.jsindex 72a83e403f2..1eb29a39aa8 100644--- a/app/assets/javascripts/pretty-text/addon/emoji/version.js+++ b/app/assets/javascripts/pretty-text/addon/emoji/version.js@@ -1,4 +1,4 @@// DO NOT EDIT THIS FILE!!!// Update it by running `rake javascript:update_constants`-export const IMAGE_VERSION = "13";+export const IMAGE_VERSION = "14";diff --git a/app/models/emoji.rb b/app/models/emoji.rbindex cb1ed813e2d..63c72031b0a 100644--- a/app/models/emoji.rb+++ b/app/models/emoji.rb@@ -2,7 +2,7 @@class Emoji# update this to clear the cache- EMOJI_VERSION = "13"+ EMOJI_VERSION = "14"FITZPATRICK_SCALE = %w[1f3fb 1f3fc 1f3fd 1f3fe 1f3ff]