Update ProfileMigrationStoreRequest.php

pull/6671/head
Shlee 2 months ago committed by GitHub
parent c8bed78bee
commit 142025db82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -71,7 +71,9 @@ class ProfileMigrationStoreRequest extends FormRequest
return 'The new account does not contain an alias to your current account.';
}
$curAcctUrl = $this->user()->profile->permalink();
if (! in_array($curAcctUrl, $pr['alsoKnownAs'])) {
$aka = (array) $pr['alsoKnownAs'];
if (empty($aka) || ! in_array($curAcctUrl, $aka)) {
return 'The new account does not contain an alias to your current account.';
}

Loading…
Cancel
Save