added Emoji struct
This commit is contained in:
parent
d8098d142a
commit
6ef0103ca0
8 changed files with 47 additions and 31 deletions
|
|
@ -436,7 +436,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
|
||||
def emoji_from_profile(%{info: _info} = user) do
|
||||
(Emoji.Formatter.get_emoji(user.bio) ++ Emoji.Formatter.get_emoji(user.name))
|
||||
|> Enum.map(fn {shortcode, url, _, _, _} ->
|
||||
|> Enum.map(fn {shortcode, %Emoji{file: url}} ->
|
||||
%{
|
||||
"type" => "Emoji",
|
||||
"icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}#{url}"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue