story = $story; $this->profile = $profile; } /** * Execute the job. * * @return void */ public function handle() { $story = $this->story; if($story->local == true) { return; } $actor = $this->profile; $target = $story->profile; $to = $target->inbox_url; $payload = [ '@context' => 'https://www.w3.org/ns/activitystreams', 'id' => $actor->permalink('#stories/' . $story->id . '/view'), 'type' => 'View', 'to' => $target->permalink(), 'actor' => $actor->permalink(), 'object' => [ 'type' => 'Story', 'object' => $story->object_id ] ]; Helpers::sendSignedObject($actor, $to, $payload); } }