def render("index.json", opts) do
reading_user = opts[:for]
-
# To do: check AdminAPIControllerTest on the reasons behind nil activities in the list
activities = Enum.filter(opts.activities, & &1)
_e ->
nil
end
+
emoji_reactions =
object.data
|> Map.get("reactions", [])
emoji_reactions: emoji_reactions,
parent_visible: visible_for_user?(reply_to, opts[:for]),
pinned_at: pinned_at
+ },
+ akkoma: %{
+ source: object.data["source"]
}
}
end
%{
name: emoji,
count: length(users),
- url: url,
+ url: MediaProxy.url(url),
me: !!(current_user && current_user.ap_id in users)
}
end