mirror of https://github.com/LemmyNet/lemmy
Handle federated reports from Mastodon, Kbin (#4323)
* Test Kbin/Mbin federation * Handle reports from Mastodon/Kbin (fixes #4217) * prettier * revert * add mastodon activity * ci * revert * cipull/4313/head
parent
4ca63c5641
commit
e3b715002b
@ -0,0 +1,13 @@
|
||||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "https://mastodon.example/ccb4f39a-506a-490e-9a8c-71831c7713a4",
|
||||
"type": "Flag",
|
||||
"actor": "https://mastodon.example/actor",
|
||||
"content": "Please take a look at this user and their posts",
|
||||
"object": [
|
||||
"https://example.com/users/1",
|
||||
"https://example.com/posts/380590",
|
||||
"https://example.com/posts/380591"
|
||||
],
|
||||
"to": "https://example.com/users/1"
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "https://some-mbin.instance/f/object/2721ffc3-f8a9-417e-a124-af057434a3af#accept",
|
||||
"type": "Accept",
|
||||
"actor": "https://some-mbin.instance/m/someMag",
|
||||
"object": {
|
||||
"id": "https://some-other.instance/f/object/c51ea652-e594-4920-a989-f5350f0cec05",
|
||||
"type": "Follow",
|
||||
"actor": "https://some-other.instance/u/someUser",
|
||||
"object": "https://some-mbin.instance/m/someMag"
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"@context": ["https://www.w3.org/ns/activitystreams"],
|
||||
"id": "https://mbin-test1/reports/45f8a01d-a73e-4575-bffa-c9f24c61f458",
|
||||
"type": "Flag",
|
||||
"actor": "https://mbin-test1/u/BentiGorlich",
|
||||
"object": ["https://lemmy-test/post/4", "https://lemmy-test/u/BentiGorlich"],
|
||||
"audience": "https://lemmy-test/c/test_mag",
|
||||
"summary": "dikjhgasdpas dsaü",
|
||||
"content": "dikjhgasdpas dsaü",
|
||||
"to": ["https://lemmy-test/c/test_mag"]
|
||||
}
|
Loading…
Reference in New Issue