From 9eca83e29c6f292ab4d95d90789df06bf8d04d34 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 11 Aug 2015 23:44:00 +0200 Subject: [PATCH] See issue 1491: We need to generate a new guid to make Diaspora work --- include/uimport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uimport.php b/include/uimport.php index 6808c706fa..b8439ee094 100644 --- a/include/uimport.php +++ b/include/uimport.php @@ -156,7 +156,8 @@ 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", generate_user_guid(), $newuid); foreach ($account['profile'] as &$profile) { foreach ($profile as $k => &$v) { -- 2.39.5