Looks like source_data is on user directly now.

This commit is contained in:
Phil Hagelberg 2019-10-27 15:20:43 -07:00
parent ca5ef201ef
commit d1320160f4
1 changed files with 1 additions and 1 deletions

View File

@ -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}