diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-11-04 16:08:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 16:08:41 +0100 |
commit | e02812d5b63b4909fff9c0c7246e80745c4c703e (patch) | |
tree | 4c42ac43e37d1db1f35381fa766ddbbeebc401b3 /lib | |
parent | b1a219552e935d0c988e1f20b9fdceeb042d2c2d (diff) |
Add assets from Twemoji 14.0 (#19733)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/emojis.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/emojis.rake b/lib/tasks/emojis.rake index d9db79940..473aee9cc 100644 --- a/lib/tasks/emojis.rake +++ b/lib/tasks/emojis.rake @@ -45,7 +45,7 @@ end namespace :emojis do desc 'Generate a unicode to filename mapping' task :generate do - source = 'http://www.unicode.org/Public/emoji/13.1/emoji-test.txt' + source = 'http://www.unicode.org/Public/emoji/14.0/emoji-test.txt' codes = [] dest = Rails.root.join('app', 'javascript', 'mastodon', 'features', 'emoji', 'emoji_map.json') @@ -69,7 +69,7 @@ namespace :emojis do end end - existence_maps = grouped_codes.map { |c| c.index_with { |cc| File.exist?(Rails.root.join('public', 'emoji', codepoints_to_filename(cc) + '.svg')) } } + existence_maps = grouped_codes.map { |c| c.index_with { |cc| File.exist?(Rails.root.join('public', 'emoji', "#{codepoints_to_filename(cc)}.svg")) } } map = {} existence_maps.each do |group| |