Don’t fallback to `skin: 1` for emojis without skin variations
parent
813f61c3d4
commit
1f5c8dd885
|
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue