Flag

used for reports

sample payload

mastodon

 1POST /users/1/inbox HTTP/1.1
 2Host: friends.grishka.me
 3Content-Type: application/activity+json
 4
 5{
 6	"@context": "https://www.w3.org/ns/activitystreams",
 7	"id": "https://mastodon.social/ccb4f39a-506a-490e-9a8c-71831c7713a4",
 8	"actor": "https://mastodon.social/actor",
 9	"content": "Please disregard this report. I'm just testing report federation.",
10	"object": [
11		"https://friends.grishka.me/users/1",
12		"https://friends.grishka.me/posts/380590"
13	]
14}

notes:

  • it is sent to the reported account’s inboxReportService#forward_to_origin!
    • [arguably this should be sent to a sharedInbox if available? or an instance actor if detected somehow? idk]
    • [mastodon uses the wrong content-type currently – mastodon/mastodon#22720]
  • the first item in object is the user
  • additional items in object are attached statuses
    • [shouldn’t these be in attachment instead?]