another view for account in admin-fe status_show
This commit is contained in:
parent
c8803965af
commit
8f08384d80
2 changed files with 9 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ defmodule Pleroma.Web.AdminAPI.StatusController do
|
|||
def show(conn, %{id: id}) do
|
||||
with %Activity{} = activity <- Activity.get_by_id(id) do
|
||||
conn
|
||||
|> put_view(MastodonAPI.StatusView)
|
||||
|> put_view(Pleroma.Web.AdminAPI.StatusView)
|
||||
|> render("show.json", %{activity: activity})
|
||||
else
|
||||
nil -> {:error, :not_found}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue