projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in dev, allow dev FE
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
views
/
status_view.ex
diff --git
a/lib/pleroma/web/admin_api/views/status_view.ex
b/lib/pleroma/web/admin_api/views/status_view.ex
index 361fa5b0d604dbcd6f1dec13154c55d7c3232e6a..a252b047c5cdfe25613af5fb3267029b1b8e13cd 100644
(file)
--- a/
lib/pleroma/web/admin_api/views/status_view.ex
+++ b/
lib/pleroma/web/admin_api/views/status_view.ex
@@
-13,8
+13,12
@@
defmodule Pleroma.Web.AdminAPI.StatusView do
defdelegate merge_account_views(user), to: AdminAPI.AccountView
defdelegate merge_account_views(user), to: AdminAPI.AccountView
+ def render("index.json", %{total: total} = opts) do
+ %{total: total, activities: render_many(opts.activities, __MODULE__, "show.json", opts)}
+ end
+
def render("index.json", opts) do
def render("index.json", opts) do
-
safe_
render_many(opts.activities, __MODULE__, "show.json", opts)
+ render_many(opts.activities, __MODULE__, "show.json", opts)
end
def render("show.json", %{activity: %{data: %{"object" => _object}} = activity} = opts) do
end
def render("show.json", %{activity: %{data: %{"object" => _object}} = activity} = opts) do