1
0
Fork 0

Merge pull request #4111 from pixelfed/staging

Update FixDuplicateProfiles command
This commit is contained in:
daniel 2023-01-21 08:34:35 -07:00 committed by GitHub
commit d7fb7f648c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -155,8 +155,8 @@ class FixDuplicateProfiles extends Command
protected function checkFollowers($id, $oid)
{
Follower::whereProfileId($oid)->update(['profile_id' => $id]);
Follower::whereFollowingId($oid)->update(['following_id' => $id]);
Follower::whereProfileId($oid)->where('profile_id', '!=', $id)->update(['profile_id' => $id]);
Follower::whereFollowingId($oid)->where('following_id', '!=', $id)->update(['following_id' => $id]);
}
protected function checkHashtagFollow($id, $oid)