projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix getting videos from peertube
[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 5db6629f2298f0a629dfdd341b82fa2e20cd2c9d..f00b0afb2a71786e6fee2521daf0c0f5cbd4943a 100644
(file)
--- a/
test/web/admin_api/views/report_view_test.exs
+++ b/
test/web/admin_api/views/report_view_test.exs
@@
-15,7
+15,7
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
user = insert(:user)
other_user = insert(:user)
user = insert(:user)
other_user = insert(:user)
- {:ok, activity} = CommonAPI.report(user, %{
"account_id" =>
other_user.id})
+ {:ok, activity} = CommonAPI.report(user, %{
account_id:
other_user.id})
expected = %{
content: nil,
expected = %{
content: nil,
@@
-45,10
+45,10
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
test "includes reported statuses" do
user = insert(:user)
other_user = insert(:user)
test "includes reported statuses" do
user = insert(:user)
other_user = insert(:user)
- {:ok, activity} = CommonAPI.post(other_user, %{
"status" =>
"toot"})
+ {:ok, activity} = CommonAPI.post(other_user, %{
status:
"toot"})
{:ok, report_activity} =
{:ok, report_activity} =
- CommonAPI.report(user, %{
"account_id" => other_user.id, "status_ids" =>
[activity.id]})
+ CommonAPI.report(user, %{
account_id: other_user.id, status_ids:
[activity.id]})
other_user = Pleroma.User.get_by_id(other_user.id)
other_user = Pleroma.User.get_by_id(other_user.id)
@@
-81,7
+81,7
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
user = insert(:user)
other_user = insert(:user)
user = insert(:user)
other_user = insert(:user)
- {:ok, activity} = CommonAPI.report(user, %{
"account_id" =>
other_user.id})
+ {:ok, activity} = CommonAPI.report(user, %{
account_id:
other_user.id})
{:ok, activity} = CommonAPI.update_report_state(activity.id, "closed")
assert %{state: "closed"} =
{:ok, activity} = CommonAPI.update_report_state(activity.id, "closed")
assert %{state: "closed"} =
@@
-94,8
+94,8
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
{:ok, activity} =
CommonAPI.report(user, %{
{:ok, activity} =
CommonAPI.report(user, %{
-
"account_id" =>
other_user.id,
-
"comment" =>
"posts are too good for this instance"
+
account_id:
other_user.id,
+
comment:
"posts are too good for this instance"
})
assert %{content: "posts are too good for this instance"} =
})
assert %{content: "posts are too good for this instance"} =
@@
-108,8
+108,8
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
{:ok, activity} =
CommonAPI.report(user, %{
{:ok, activity} =
CommonAPI.report(user, %{
-
"account_id" =>
other_user.id,
-
"comment" =>
""
+
account_id:
other_user.id,
+
comment:
""
})
data = Map.put(activity.data, "content", "<script> alert('hecked :D:D:D:D:D:D:D') </script>")
})
data = Map.put(activity.data, "content", "<script> alert('hecked :D:D:D:D:D:D:D') </script>")
@@
-125,8
+125,8
@@
defmodule Pleroma.Web.AdminAPI.ReportViewTest do
{:ok, activity} =
CommonAPI.report(user, %{
{:ok, activity} =
CommonAPI.report(user, %{
-
"account_id" =>
other_user.id,
-
"comment" =>
""
+
account_id:
other_user.id,
+
comment:
""
})
Pleroma.User.delete(other_user)
})
Pleroma.User.delete(other_user)