mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-18 19:13:17 +00:00
Update MovePipeline to handle mute and block migrations
This commit is contained in:
parent
f1497655ba
commit
002dfefbdd
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,7 @@ namespace App\Jobs\MovePipeline;
|
|||
use App\Follower;
|
||||
use App\Profile;
|
||||
use App\Services\AccountService;
|
||||
use App\UserFilter;
|
||||
use App\Util\ActivityPub\Helpers;
|
||||
use DateTime;
|
||||
use Exception;
|
||||
|
@ -84,6 +85,10 @@ class CleanupLegacyAccountMovePipeline implements ShouldQueue
|
|||
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();
|
||||
|
||||
$oldProfile = Profile::find($actorAccount['id']);
|
||||
|
|
Loading…
Reference in a new issue