From: Phil Hagelberg Date: Sun, 27 Oct 2019 22:20:43 +0000 (-0700) Subject: Looks like source_data is on user directly now. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d1320160f436c719ecca8b31463dd16a1ab2bdb9;p=akkoma Looks like source_data is on user directly now. --- diff --git a/lib/pleroma/web/static_fe/static_fe_view.ex b/lib/pleroma/web/static_fe/static_fe_view.ex index c01e8d40b..ba67de835 100644 --- a/lib/pleroma/web/static_fe/static_fe_view.ex +++ b/lib/pleroma/web/static_fe/static_fe_view.ex @@ -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}