Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
7fef71c387
commit
763fd696ef
@ -106,12 +106,9 @@ defmodule Pleroma.Emoji do
|
|||||||
|
|
||||||
@emoji_reactions File.read!(@external_resource)
|
@emoji_reactions File.read!(@external_resource)
|
||||||
|> Jason.decode!()
|
|> Jason.decode!()
|
||||||
|> Enum.reduce(%{}, fn {name, codepoint}, acc ->
|
|> Map.new(fn {name, codepoint} ->
|
||||||
Map.put(
|
{String.downcase(name),
|
||||||
acc,
|
[codepoint |> String.to_integer(16)] |> String.Chars.to_string()}
|
||||||
String.downcase(name),
|
|
||||||
[codepoint |> String.to_integer(16)] |> String.Chars.to_string()
|
|
||||||
)
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
# Consider putting the emoji as the key if that's fine with PleromaFE
|
# Consider putting the emoji as the key if that's fine with PleromaFE
|
||||||
|
Loading…
Reference in New Issue
Block a user