summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-11-09 23:02:27 -0500
committertusooa <tusooa@kazv.moe>2022-11-09 23:02:27 -0500
commit717c5901f893527b059201d1ce7899060a18a1a5 (patch)
tree4d0f22c86089f4c31c6e20541a386ccfb703bd64 /lib
parent6f047cc308352cb3437f95e31e73487bba194abe (diff)
Render a generated reported activity properly
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/admin_api/report.ex8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/pleroma/web/admin_api/report.ex b/lib/pleroma/web/admin_api/report.ex
index f377e1804..6856bfcb3 100644
--- a/lib/pleroma/web/admin_api/report.ex
+++ b/lib/pleroma/web/admin_api/report.ex
@@ -36,7 +36,9 @@ defmodule Pleroma.Web.AdminAPI.Report do
"to" => [],
"cc" => [],
"object" => act["id"],
- "published" => act["published"]
+ "published" => act["published"],
+ "id" => act["id"],
+ "context" => "pleroma:fake"
},
recipients: [user.ap_id],
object: %Object{
@@ -46,7 +48,9 @@ defmodule Pleroma.Web.AdminAPI.Report do
"content" => act["content"],
"published" => act["published"],
"to" => [],
- "cc" => []
+ "cc" => [],
+ "id" => act["id"],
+ "context" => "pleroma:fake"
}
}
}