1
0
Fork 0

Merge pull request #4397 from annando/no-new-guid

Don't generate a new guid anymore when moving the account.
This commit is contained in:
rabuzarus 2018-02-04 13:49:23 +01:00 committed by GitHub
commit 21457c171b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,9 +173,6 @@ class UserImport
PConfig::set($newuid, 'system', 'previous_addr', $old_handle);
// Generate a new guid for the account. Otherwise there will be problems with diaspora
dba::update('user', ['guid' => generate_user_guid()], ['uid' => $newuid]);
foreach ($account['profile'] as &$profile) {
foreach ($profile as $k => &$v) {
$v = str_replace([$oldbaseurl, $oldaddr], [$newbaseurl, $newaddr], $v);