mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
FIX: prevent thumbsup/down to appear in custom emojis
This commit is contained in:
@ -5995,14 +5995,6 @@
|
|||||||
{
|
{
|
||||||
"code": "1f1fa-1f1f3",
|
"code": "1f1fa-1f1f3",
|
||||||
"name": "united_nations"
|
"name": "united_nations"
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": "1f44d",
|
|
||||||
"name": "thumbsup"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"code": "1f44e",
|
|
||||||
"name": "thumbsdown"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tonableEmojis": [
|
"tonableEmojis": [
|
||||||
|
@ -500,10 +500,6 @@ def write_db_json(emojis)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# adds emoji wich are not displayed in picker but available in autocomplete
|
|
||||||
emojis_without_tones << { "code" => "1f44d", "name" => "thumbsup" }
|
|
||||||
emojis_without_tones << { "code" => "1f44e", "name" => "thumbsdown" }
|
|
||||||
|
|
||||||
emoji_with_tones = emojis
|
emoji_with_tones = emojis
|
||||||
.select { |code, config| config["fitzpatrick_scale"] }
|
.select { |code, config| config["fitzpatrick_scale"] }
|
||||||
.map { |code, config| config["name"] }
|
.map { |code, config| config["name"] }
|
||||||
|
Reference in New Issue
Block a user