projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bugfix/1543-streaming-boosts' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
account_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/account_view.ex
b/lib/pleroma/web/mastodon_api/views/account_view.ex
index 8fb96a22ab482494b115f1a54284bf9f193ba379..b4b61e74cfd393fe22cb9241a024c4cce661178f 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/account_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/account_view.ex
@@
-181,13
+181,11
@@
defmodule Pleroma.Web.MastodonAPI.AccountView do
bot = user.actor_type in ["Application", "Service"]
emojis =
bot = user.actor_type in ["Application", "Service"]
emojis =
- (user.source_data["tag"] || [])
- |> Enum.filter(fn %{"type" => t} -> t == "Emoji" end)
- |> Enum.map(fn %{"icon" => %{"url" => url}, "name" => name} ->
+ Enum.map(user.emoji, fn {shortcode, url} ->
%{
%{
- "shortcode" =>
String.trim(name, ":")
,
- "url" =>
MediaProxy.url(url)
,
- "static_url" =>
MediaProxy.url(url)
,
+ "shortcode" =>
shortcode
,
+ "url" =>
url
,
+ "static_url" =>
url
,
"visible_in_picker" => false
}
end)
"visible_in_picker" => false
}
end)