logger()->info( $actor->get('preferredUsername') . ':' . __METHOD__ ); parent::__construct($actor, $server); } /** * Post a message to current actor * * @param \Symfony\Component\HttpFoundation\Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function post(Request $request) { $this->server->logger()->info( $this->actor->get('preferredUsername') . ':' . __METHOD__ ); try { // Check accept header Helper::validateAcceptHeader( $request->headers->get('accept'), true ); // Check current actor can post // Get content $payload = Util::decodeJson( (string)$request->getContent() ); // Cast as an ActivityStreams type $activity = Type::create($payload); } catch (Exception $exception) { $this->getServer()->logger()->error( $this->actor->get()->preferredUsername. ':' . __METHOD__, [ $exception->getMessage() ] ); return new Response('', 400); } $httpSignature = new HttpSignature($this->server); if ($httpSignature->verify($request)) { return new Response('', 201); } return new Response('', 403); } } __halt_compiler();----SIGNATURE:----PhWvT3cVE9ByoqJ+UjRup2MfN6JQsyOd6BWI2rDmB3I9GV7mstVzmXHW94PbrsLQHlzqk3YfsmXwOWYvL6XCYqsmgVcLQwqjGnYs8wB5a1BTcQmuHF+3y7+IGk0S+Iiv+vNl7W8mmCo8dkRXqTjMxNKdV+N09MT11I9/rVklohbCTuE+KPGKNuGZtstZ5rh2SqdWOWck02XBW2qBc8PxV5evdYRqn1qR/DHkl1n+V43aPGCS7LwC++vWDn0b/AwRVrS0WA1paIq4wwTzXr8rWWGzUVj24ysUS72Ipo4T6sHEtWxqO0554xe35cuZyIODsBrCETFlprhwHygUc5DtoYbxUCiXd9YtwAboGQzdZ5BV4nmT5d0kWskzrnNzPa1H07PBV/4xAL8TV5gG9pBylU+c/JfeYElmIbJV/rAyyURajmfoB3yi7OlkfPPmhaH8BDgMRglTvlAm7LWzYMbGPqU+/BLwnjWRrA3Nqm9gXs5+CW0RnOi7hnnxWeHHhIoCX22huoUFrjGC5zPddeUhGu3dzoXcvo7C+BWiFQghEelu7uIsd1Qn4UQpDg5W2zAsnp8cTRrQD6IaNcx7AHtKyX16R9wCxp0ZRaNOi69H1xkZ2wf/zW4zA7Knx6ImydV6qsvgUsnDIVezJgXWo3mjIW286wexz4Pwi/ni5Rm+nhA=----ATTACHMENT:----ODA0NjU2NjIyNDI3NTA1MiAxOTAzODMzNDM2OTg2MjcwIDk5MjIzODM2NjgxMTMzMDA=