mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 03:05:23 +01:00
Use Image type for emoji icons.
This commit is contained in:
parent
1ed1ff17a4
commit
92caa2632b
@ -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:"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user