sid; } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new WithoutOverlapping("hts:feed:remove:remote:sid:{$this->sid}"))->shared()->dontRelease()]; } /** * Create a new job instance. */ public function __construct($sid, $pid) { $this->sid = $sid; $this->pid = $pid; } /** * Execute the job. */ public function handle(): void { $sid = $this->sid; $pid = $this->pid; // Verify status ID exists if (! $sid) { Log::info('FeedRemoveRemotePipeline: Status ID not provided, skipping job'); return; } // Verify profile ID exists if (! $pid) { Log::info('FeedRemoveRemotePipeline: Profile ID not provided, skipping job'); return; } $ids = FollowerService::localFollowerIds($pid); foreach ($ids as $id) { HomeTimelineService::rem($id, $sid); } } }