summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/activity_pub/views/user_view.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/activity_pub/views/user_view.ex')
-rw-r--r--lib/pleroma/web/activity_pub/views/user_view.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex
index 350c4391d..84b121ec6 100644
--- a/lib/pleroma/web/activity_pub/views/user_view.ex
+++ b/lib/pleroma/web/activity_pub/views/user_view.ex
@@ -61,6 +61,10 @@ defmodule Pleroma.Web.ActivityPub.UserView do
|> Map.merge(Utils.make_json_ld_header())
end
+ def render("users.json", %{users: users}) do
+ render_many(users, Pleroma.Web.ActivityPub.UserView, "user.json")
+ end
+
# the instance itself is not a Person, but instead an Application
def render("user.json", %{user: %User{nickname: nil} = user}),
do: render("service.json", %{user: user})