Update OpenAPI spec for AdminAPI.StatusController

This commit is contained in:
Egor Kislitsyn 2020-06-02 19:07:17 +04:00
commit 7922e63825
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
2 changed files with 2 additions and 4 deletions

View file

@ -41,9 +41,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(Pleroma.Web.AdminAPI.StatusView)
|> render("show.json", %{activity: activity})
render(conn, "show.json", %{activity: activity})
else
nil -> {:error, :not_found}
end