]> git.mxchange.org Git - friendica.git/commitdiff
Create a new GUID on user import
authorMichael <heluecht@pirati.ca>
Wed, 14 Nov 2018 05:58:03 +0000 (05:58 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 14 Nov 2018 05:58:03 +0000 (05:58 +0000)
src/Core/UserImport.php

index 5488fe43f0f26f35d07b649763db9b0d1d161e5d..e774d248612cf660b155fa08b9e2d9ea21b758be 100644 (file)
@@ -129,6 +129,9 @@ class UserImport
                        $old_handle = $account['user']['nickname'].$oldaddr;
                }
 
+               // Creating a new guid to avoid problems with Diaspora
+               $account['user']['guid'] = System::createUUID();
+
                $olduid = $account['user']['uid'];
 
                unset($account['user']['uid']);