- def render("show.json", %{activity: %{data: %{"object" => _object}} = activity} = opts) do
- user = get_user(activity.data["actor"])
-
- Pleroma.Web.MastodonAPI.StatusView.render("show.json", opts)
- |> Map.merge(%{account: merge_account_views(user)})
+ def render("index.json", %{total: total} = opts) do
+ %{total: total, activities: render_many(opts.activities, __MODULE__, "show.json", opts)}