X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuimport.php;h=78471af1514461d33cdef9a13f7b1e5bd31503e8;hb=3665ab3de03d6a190211b7a5f3b2d881705b0f18;hp=6808c706fab7240d8c7707bf23bb515615f7f785;hpb=0e9c8f6f1a0af4b613e468aa2a74ae9a268038d2;p=friendica.git diff --git a/include/uimport.php b/include/uimport.php index 6808c706fa..78471af151 100644 --- a/include/uimport.php +++ b/include/uimport.php @@ -156,7 +156,9 @@ function import_account(&$a, $file) { $newuid = last_insert_id(); //~ $newuid = 1; - + // Generate a new guid for the account. Otherwise there will be problems with diaspora + q("UPDATE `user` SET `guid` = '%s' WHERE `uid` = %d", + dbesc(generate_user_guid()), intval($newuid)); foreach ($account['profile'] as &$profile) { foreach ($profile as $k => &$v) {