1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-11-18 07:16:17 +01:00

Merge branch 'admin-api/account-view' into 'develop'

Use AdminAPI.StatusView in api/admin/users

Closes #1836

See merge request pleroma/pleroma!2627
This commit is contained in:
lain 2020-06-03 11:28:56 +00:00
commit d28d88766b

View File

@ -30,7 +30,6 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
alias Pleroma.Web.AdminAPI.Search
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.Endpoint
alias Pleroma.Web.MastodonAPI
alias Pleroma.Web.Router
require Logger
@ -279,7 +278,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
})
conn
|> put_view(MastodonAPI.StatusView)
|> put_view(AdminAPI.StatusView)
|> render("index.json", %{activities: activities, as: :activity})
else
_ -> {:error, :not_found}