URI.encode custom emojis

This commit is contained in:
Mark Felder 2021-01-05 12:25:30 -06:00
parent 20a269ed69
commit 64116f63d9

View File

@ -919,7 +919,7 @@ def add_emoji_tags(object), do: object
defp build_emoji_tag({name, url}) do
%{
"icon" => %{"url" => url, "type" => "Image"},
"icon" => %{"url" => "#{URI.encode(url)}", "type" => "Image"},
"name" => ":" <> name <> ":",
"type" => "Emoji",
"updated" => "1970-01-01T00:00:00Z",