PleromaAPI: Fix emoji_reactions_by

This commit is contained in:
lain 2019-10-02 18:13:10 +02:00
parent 9cfe9a57c5
commit 391c736292
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def emoji_reactions_by(%{assigns: %{user: user}} = conn, %{"id" => activity_id})
emoji_reactions
|> Enum.map(fn {emoji, users} ->
users = Enum.map(users, &User.get_cached_by_ap_id/1)
{emoji, AccountView.render("accounts.json", %{users: users, for: user, as: :user})}
{emoji, AccountView.render("index.json", %{users: users, for: user, as: :user})}
end)
|> Enum.into(%{})