|
@@ -78,6 +78,11 @@ class DeleteAccountPipeline implements ShouldQueue
|
|
$user = $this->user;
|
|
$user = $this->user;
|
|
$profile = $user->profile;
|
|
$profile = $user->profile;
|
|
$id = $user->profile_id;
|
|
$id = $user->profile_id;
|
|
|
|
+ Status::whereProfileId($id)->chunk(50, function($statuses) {
|
|
|
|
+ foreach($statuses as $status) {
|
|
|
|
+ StatusDelete::dispatchNow($status);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
$this->deleteUserColumns($user);
|
|
$this->deleteUserColumns($user);
|
|
AccountService::del($user->profile_id);
|
|
AccountService::del($user->profile_id);
|
|
|
|
|
|
@@ -169,12 +174,6 @@ class DeleteAccountPipeline implements ShouldQueue
|
|
DB::table('oauth_auth_codes')->whereUserId($user->id)->delete();
|
|
DB::table('oauth_auth_codes')->whereUserId($user->id)->delete();
|
|
ProfileSponsor::whereProfileId($id)->delete();
|
|
ProfileSponsor::whereProfileId($id)->delete();
|
|
|
|
|
|
- Status::whereProfileId($id)->chunk(50, function($statuses) {
|
|
|
|
- foreach($statuses as $status) {
|
|
|
|
- StatusDelete::dispatch($status)->onQueue('high');
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
Report::whereUserId($user->id)->forceDelete();
|
|
Report::whereUserId($user->id)->forceDelete();
|
|
PublicTimelineService::warmCache(true, 400);
|
|
PublicTimelineService::warmCache(true, 400);
|
|
Profile::whereUserId($user->id)->delete();
|
|
Profile::whereUserId($user->id)->delete();
|