|
|
@ -5,6 +5,7 @@ namespace App\Jobs\MovePipeline;
|
|
|
|
use App\Follower;
|
|
|
|
use App\Follower;
|
|
|
|
use App\Profile;
|
|
|
|
use App\Profile;
|
|
|
|
use App\Services\AccountService;
|
|
|
|
use App\Services\AccountService;
|
|
|
|
|
|
|
|
use App\UserFilter;
|
|
|
|
use App\Util\ActivityPub\Helpers;
|
|
|
|
use App\Util\ActivityPub\Helpers;
|
|
|
|
use DateTime;
|
|
|
|
use DateTime;
|
|
|
|
use Exception;
|
|
|
|
use Exception;
|
|
|
@ -84,6 +85,10 @@ class CleanupLegacyAccountMovePipeline implements ShouldQueue
|
|
|
|
throw new Exception('Invalid move accounts');
|
|
|
|
throw new Exception('Invalid move accounts');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UserFilter::where('filterable_type', 'App\Profile')
|
|
|
|
|
|
|
|
->where('filterable_id', $actorAccount['id'])
|
|
|
|
|
|
|
|
->update(['filterable_id' => $targetAccount['id']]);
|
|
|
|
|
|
|
|
|
|
|
|
Follower::whereFollowingId($actorAccount['id'])->delete();
|
|
|
|
Follower::whereFollowingId($actorAccount['id'])->delete();
|
|
|
|
|
|
|
|
|
|
|
|
$oldProfile = Profile::find($actorAccount['id']);
|
|
|
|
$oldProfile = Profile::find($actorAccount['id']);
|
|
|
|