Merge branch 'features/put_if_present' into 'develop'
[akkoma] / lib / pleroma / web / admin_api / controllers / status_controller.ex
index c91fbc771ce25b0f9ddccb233043a6adc8c6c8ff..574196be855f06233f10ae2ef753204150965be3 100644 (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