From 0168b882a8c28c9db1366299df27aa008339b161 Mon Sep 17 00:00:00 2001 From: Cutls Date: Sat, 5 Oct 2019 02:40:25 +0900 Subject: [PATCH] fix some categorized emojis --- app/js/post/emoji.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/js/post/emoji.js b/app/js/post/emoji.js index 19d6c4d3..ae096630 100644 --- a/app/js/post/emoji.js +++ b/app/js/post/emoji.js @@ -107,6 +107,14 @@ function emojiGet(parse, started) { if (a.shortcode > b.shortcode) return 1; return 0; }); + Object.keys(md["categorized"]).forEach(function (key) { + md["categorized"][key].sort(function (a, b) { + if (a.shortcode < b.shortcode) return -1; + if (a.shortcode > b.shortcode) return 1; + return 0; + }); + }); + md["if_categorized"] = if_categorized localStorage.setItem("emojis_" + acct_id, JSON.stringify(md)); } else {