projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca5ef20
)
Looks like source_data is on user directly now.
author
Phil Hagelberg
<phil@hagelb.org>
Sun, 27 Oct 2019 22:20:43 +0000
(15:20 -0700)
committer
Phil Hagelberg
<phil@hagelb.org>
Sun, 10 Nov 2019 02:06:51 +0000
(18:06 -0800)
lib/pleroma/web/static_fe/static_fe_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/static_fe/static_fe_view.ex
b/lib/pleroma/web/static_fe/static_fe_view.ex
index c01e8d40b4f2c5843fd644d09f7a7e51aaf2b0ae..ba67de83514cd29839dd8d366d5c6e1baff3f1cf 100644
(file)
--- 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}