status->id; } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new WithoutOverlapping("hfp:f-insert:sid:{$this->status->id}"))->shared()->dontRelease()]; } /** * Create a new job instance. */ public function __construct(Status $status) { $this->status = $status; } /** * Execute the job. */ public function handle(): void { $status = $this->status; $sid = $status->id; $pid = $status->profile_id; $ids = FollowerService::localFollowerIds($pid); foreach($ids as $id) { HomeTimelineService::add($id, $sid); } } }