Use AdminAPI.StatusView in api/admin/users

This commit is contained in:
Egor Kislitsyn 2020-06-03 14:53:46 +04:00
parent 12c2b3b831
commit 8a43611e01
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805

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 @@ def list_user_statuses(conn, %{"nickname" => nickname} = params) do
})
conn
|> put_view(MastodonAPI.StatusView)
|> put_view(AdminAPI.StatusView)
|> render("index.json", %{activities: activities, as: :activity})
else
_ -> {:error, :not_found}