Don’t fallback to `skin: 1` for emojis without skin variations

release
Etienne Lemay 2016-07-20 13:46:46 -04:00
parent 813f61c3d4
commit 1f5c8dd885
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function unifiedToNative(unified) {
} }
function sanitize(emoji) { function sanitize(emoji) {
var { name, short_names, skin_tone, emoticons, unified } = emoji, var { name, short_names, skin_tone, skin_variations, emoticons, unified } = emoji,
id = short_names[0], id = short_names[0],
colons = `:${id}:` colons = `:${id}:`
@ -26,7 +26,7 @@ function sanitize(emoji) {
name, name,
colons, colons,
emoticons, emoticons,
skin: skin_tone || 1, skin: skin_tone || skin_variations ? 1 : null,
native: unifiedToNative(unified), native: unifiedToNative(unified),
} }
} }