status_id); if (! $status) { $bookmark->delete(); continue; } if (! in_array($status->visibility, ['public', 'unlisted', 'private'])) { $bookmark->delete(); continue; } if (! in_array($status->visibility, ['public', 'unlisted'])) { if ($bookmark->profile_id == $status->profile_id) { continue; } else { if (! FollowerService::follows($bookmark->profile_id, $status->profile_id)) { $bookmark->delete(); } } } } }); } /** * Reverse the migrations. * * @return void */ public function down() { // } };