Merge branch 'feature/status-by-id-account-view' into 'develop'

another view for account in admin-fe status_show

Closes #1783

See merge request pleroma/pleroma!2543
This commit is contained in:
lain 2020-06-02 08:49:24 +00:00
commit d111eae798
2 changed files with 9 additions and 1 deletions

View file

@ -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}