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