Merge branch 'master' into glitch-soc/merge-upstream

master
Thibaut Girka 5 years ago
commit b9d75e49c2
  1. 2
      app/javascript/mastodon/features/emoji/emoji.js

@ -11,7 +11,7 @@ const darkEmoji = '🎱🐜⚫🖤⬛◼◾◼💣🎳📷📸
const lightEmoji = '👽⚾🐔☁💨🕊👀🍥👻🐐❕❔⛸🌩🔊🔇📃🌧🐏🍚🍙🐓🐑💀☠🌨🔉🔈💬💭🏐🏳⚪⬜◽◻';
const emojiFilename = (filename, match) => {
const borderedEmoji = document.body.classList.contains('theme-mastodon-light') ? lightEmoji : darkEmoji;
const borderedEmoji = (document.body && document.body.classList.contains('theme-mastodon-light')) ? lightEmoji : darkEmoji;
return borderedEmoji.includes(match) ? (filename + '_border') : filename;
};

Loading…
Cancel
Save