Update PrivacySettings.php

pull/6680/head
Shlee 1 month ago committed by GitHub
parent de8f3b3fcd
commit 0f79861f1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -226,6 +226,13 @@ trait PrivacySettings
break;
case 'remove-all':
Follower::whereFollowingId($profile->id)
->select(['profile_id', 'following_id'])
->chunkById(100, function ($followers) {
foreach ($followers as $follower) {
FeedUnfollowPipeline::dispatch($follower->profile_id, $follower->following_id)->onQueue('feed');
}
});
Follower::whereFollowingId($profile->id)->delete();
break;

Loading…
Cancel
Save