forked from AkkomaGang/akkoma
URI.encode custom emojis
This commit is contained in:
parent
20a269ed69
commit
64116f63d9
1 changed files with 1 additions and 1 deletions
|
@ -919,7 +919,7 @@ def add_emoji_tags(object), do: object
|
||||||
|
|
||||||
defp build_emoji_tag({name, url}) do
|
defp build_emoji_tag({name, url}) do
|
||||||
%{
|
%{
|
||||||
"icon" => %{"url" => url, "type" => "Image"},
|
"icon" => %{"url" => "#{URI.encode(url)}", "type" => "Image"},
|
||||||
"name" => ":" <> name <> ":",
|
"name" => ":" <> name <> ":",
|
||||||
"type" => "Emoji",
|
"type" => "Emoji",
|
||||||
"updated" => "1970-01-01T00:00:00Z",
|
"updated" => "1970-01-01T00:00:00Z",
|
||||||
|
|
Loading…
Reference in a new issue