forked from AkkomaGang/akkoma
Looks like source_data is on user directly now.
This commit is contained in:
parent
ca5ef201ef
commit
d1320160f4
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEView do
|
|||
import Phoenix.HTML
|
||||
|
||||
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.map(fn %{"icon" => %{"url" => url}, "name" => name} ->
|
||||
{String.trim(name, ":"), url}
|
||||
|
|
Loading…
Reference in a new issue