[ActivityPub] Port Postman

This commit is contained in:
2021-11-29 23:58:42 +00:00
parent df3fbbc9e7
commit 123544fa50
4 changed files with 83 additions and 17 deletions

View File

@@ -49,13 +49,14 @@ class Inbox extends Controller
// TODO: Check if Actor can post
// Get content
$payload = Util::decodeJson(
(string) $this->request->getContent(),
);
// Cast as an ActivityStreams type
$type = Type::create($payload);
// // Get content
// $payload = Util::decodeJson(
// (string) $this->request->getContent(),
// );
//
// // Cast as an ActivityStreams type
// $type = Type::create($payload);
$type = Type::fromJson((string) $this->request->getContent());
// TODO: Check if Actor has authority over payload