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:----VvNlO8sk2df3fWIhB0oG6/81EGSszJqV2IDWXjVFjDjOI9/BZ+169WaUt8mWF2PBpB/1auL7rF8jLDaoSz+1NT1V6rGFsDOMsQYIpsqr2ZDCqNLjxxaKueuM2v1tGSVeguG0xVaQOINB+sXuYx5FbazQI1+OJQHFlnuz7L1JBSiHVf6DnH8fYjTeR+ipW3RHByGhBW6QlAQ91XA9oJdPHKEEt0FX/SgAj33WgeNGlqlv56adwkYMzt9lF3ao/XVpyVnDSdV3wybjCkmeR4nNOtzeIpa+dicyyEvpEyPNiLfRuY08LwRtzXQWuBmL6/owTJAugcVCtFPE1Y+ol9XLJwb/fuZIgW1dbman2yCOOqigPizxH1IUNbD8zH+HcMOwyn0fmzIJPmdxt1lGjROzutBNXhdIYsyiQgaufkm2V+sd5Ok+9+bW2x9qJfcfohskihqAa9yD8Xf46mGUCJOV/Ay4UeHHm1KJqBuNjvcVFSnH6RroJm4/HsypVKTP6Yzs2jsb7gN1IC763JBgk/e1DruZZqNjeXq/C/oz4UTYwRvEWMASzfUcZaB8/X+JNO0CSVQBaQUTKzU0Q0lBaBpJa4/q/dbrKuNt63hqQaWyzu8ZveBC51UOWqPEA24hWtswumHDZSi4MWM2fLePvscTypcbBNBcRB1pVK/uNU+bZF4=----ATTACHMENT:----NzYxOTk0NTM1MzAzNTI2MiA2MDk2MTM5ODIwMTYwOTI5IDY1NzI1OTExNTkxOTQ1NTA=