projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Admin API: `GET /api/pleroma/admin/statuses` - list all statuses (accepts `godmode...
[akkoma]
/
test
/
web
/
admin_api
/
views
/
report_view_test.exs
diff --git
a/test/web/admin_api/views/report_view_test.exs
b/test/web/admin_api/views/report_view_test.exs
index 4757058576d2d5b5c54290d2f0ffbc5e9292c89e..a0c6eab3c546f395af031c611780e5f0ba6f45e0 100644
(file)
--- a/
test/web/admin_api/views/report_view_test.exs
+++ b/
test/web/admin_api/views/report_view_test.exs
@@
-30,6
+30,7
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
Pleroma.Web.AdminAPI.AccountView.render("show.json", %{user: other_user})
),
statuses: [],
Pleroma.Web.AdminAPI.AccountView.render("show.json", %{user: other_user})
),
statuses: [],
+ notes: [],
state: "open",
id: activity.id
}
state: "open",
id: activity.id
}
@@
-49,6
+50,8
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
{:ok, report_activity} =
CommonAPI.report(user, %{"account_id" => other_user.id, "status_ids" => [activity.id]})
{:ok, report_activity} =
CommonAPI.report(user, %{"account_id" => other_user.id, "status_ids" => [activity.id]})
+ other_user = Pleroma.User.get_by_id(other_user.id)
+
expected = %{
content: nil,
actor:
expected = %{
content: nil,
actor:
@@
-63,6
+66,7
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
),
statuses: [StatusView.render("show.json", %{activity: activity})],
state: "open",
),
statuses: [StatusView.render("show.json", %{activity: activity})],
state: "open",
+ notes: [],
id: report_activity.id
}
id: report_activity.id
}