Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Update emoji codepoint mappings to v11.0 (mastodon#9618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Dec 24, 2018
1 parent 5f38799 commit 2ee779d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/emoji/emoji_map.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lib/tasks/emojis.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end
namespace :emojis do
desc 'Generate a unicode to filename mapping'
task :generate do
source = 'http://www.unicode.org/Public/emoji/5.0/emoji-test.txt'
source = 'http://www.unicode.org/Public/emoji/11.0/emoji-test.txt'
codes = []
dest = Rails.root.join('app', 'javascript', 'mastodon', 'features', 'emoji', 'emoji_map.json')

Expand Down Expand Up @@ -43,6 +43,8 @@ namespace :emojis do
existence_maps.each do |group|
existing_one = group.key(true)

next if existing_one.nil?

group.each_key do |key|
map[codepoints_to_unicode(key)] = codepoints_to_filename(existing_one)
end
Expand Down

0 comments on commit 2ee779d

Please sign in to comment.