Commit 92caa263 authored by eal's avatar eal

Use Image type for emoji icons.

parent 1ed1ff17
......@@ -203,7 +203,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|> Enum.map(fn {shortcode, url} ->
%{
"type" => "Emoji",
"icon" => %{"url" => "#{Endpoint.url()}#{url}"},
"icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}#{url}"},
"name" => ":#{shortcode}:"
}
end)
......
......@@ -37,12 +37,12 @@ defmodule Pleroma.Web.CommonAPI.UtilsTest do
expected = [
%{
"type" => "Emoji",
"icon" => %{"url" => "#{Endpoint.url()}/finmoji/128px/perkele-128.png"},
"icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}/finmoji/128px/perkele-128.png"},
"name" => ":perkele:"
},
%{
"type" => "Emoji",
"icon" => %{"url" => "#{Endpoint.url()}/finmoji/128px/karjalanpiirakka-128.png"},
"icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}/finmoji/128px/karjalanpiirakka-128.png"},
"name" => ":karjalanpiirakka:"
}
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment