ensure we have a unique guid for each address if one is generated.

This commit is contained in:
friendica 2014-06-30 03:38:12 -07:00
parent 4e8d10e269
commit 71e8643bf6

View File

@ -999,9 +999,9 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED) {
}
if(($changed) || ($ud_flags == UPDATE_FLAGS_FORCED)) {
$guid = random_string() . '@' . get_app()->get_hostname();
if($addresses) {
foreach($addresses as $address) {
$guid = random_string() . '@' . get_app()->get_hostname();
update_modtime($xchan_hash,$guid,$address,$ud_flags);
}
}