projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flag for delete fix
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
views
/
moderation_log_view.ex
diff --git
a/lib/pleroma/web/admin_api/views/moderation_log_view.ex
b/lib/pleroma/web/admin_api/views/moderation_log_view.ex
index b3fc7cfe57106c9d01fadfd45a42e061bab72bfe..e7752d1f3994e09075aeca18bb297d1969bf4170 100644
(file)
--- a/
lib/pleroma/web/admin_api/views/moderation_log_view.ex
+++ b/
lib/pleroma/web/admin_api/views/moderation_log_view.ex
@@
-8,7
+8,10
@@
defmodule Pleroma.Web.AdminAPI.ModerationLogView do
alias Pleroma.ModerationLog
def render("index.json", %{log: log}) do
alias Pleroma.ModerationLog
def render("index.json", %{log: log}) do
- render_many(log, __MODULE__, "show.json", as: :log_entry)
+ %{
+ items: render_many(log.items, __MODULE__, "show.json", as: :log_entry),
+ total: log.count
+ }
end
def render("show.json", %{log_entry: log_entry}) do
end
def render("show.json", %{log_entry: log_entry}) do