projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'features/put_if_present' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
controllers
/
status_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/status_controller.ex
b/lib/pleroma/web/admin_api/controllers/status_controller.ex
index 08cb9c10b3da0a696eeb7a31992728ef194c86dc..574196be855f06233f10ae2ef753204150965be3 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/status_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/status_controller.ex
@@
-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
def show(conn, %{id: id}) do
with %Activity{} = activity <- Activity.get_by_id(id) do
- conn
- |> put_view(MastodonAPI.StatusView)
- |> render("show.json", %{activity: activity})
+ render(conn, "show.json", %{activity: activity})
else
nil -> {:error, :not_found}
end
else
nil -> {:error, :not_found}
end