story = $story; $this->status = $status; } /** * Execute the job. * * @return void */ public function handle() { $story = $this->story; $status = $this->status; if($story->local == true) { return; } $target = $story->profile; $actor = $status->profile; $to = $target->inbox_url; $payload = [ '@context' => 'https://www.w3.org/ns/activitystreams', 'id' => $status->permalink(), 'type' => 'Story:Reaction', 'to' => $target->permalink(), 'actor' => $actor->permalink(), 'content' => $status->caption, 'inReplyTo' => $story->object_id, 'published' => $status->created_at->toAtomString() ]; Helpers::sendSignedObject($actor, $to, $payload); } }