X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuimport.php;h=78471af1514461d33cdef9a13f7b1e5bd31503e8;hb=dd9f475ff61e5808f4429cf5de0f5fda79224991;hp=6808c706fab7240d8c7707bf23bb515615f7f785;hpb=5205756898757f2bc9c623946794d04c597429a9;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) {