Looks like source_data is on user directly now.
This commit is contained in:
parent
ca5ef201ef
commit
d1320160f4
|
@ -13,7 +13,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEView do
|
||||||
import Phoenix.HTML
|
import Phoenix.HTML
|
||||||
|
|
||||||
def emoji_for_user(%User{} = user) do
|
def emoji_for_user(%User{} = user) do
|
||||||
(user.info.source_data["tag"] || [])
|
(user.source_data["tag"] || [])
|
||||||
|> Enum.filter(fn %{"type" => t} -> t == "Emoji" end)
|
|> Enum.filter(fn %{"type" => t} -> t == "Emoji" end)
|
||||||
|> Enum.map(fn %{"icon" => %{"url" => url}, "name" => name} ->
|
|> Enum.map(fn %{"icon" => %{"url" => url}, "name" => name} ->
|
||||||
{String.trim(name, ":"), url}
|
{String.trim(name, ":"), url}
|
||||||
|
|
Loading…
Reference in New Issue