X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_update.php;h=61eaee75d92ae64641c567f4dcdf55704d938079;hb=0693afd6b74988b1527fe771d64d3c5e14cef84a;hp=f2a806cfd87fe9378a3c35d0782719a661a67c94;hpb=fe2c8a18454253df09f20c8821d7d6e14c0ea8e0;p=friendica.git diff --git a/include/profile_update.php b/include/profile_update.php index f2a806cfd8..61eaee75d9 100644 --- a/include/profile_update.php +++ b/include/profile_update.php @@ -15,8 +15,8 @@ function profile_change() { // if($url && strlen(get_config('system','directory_submit_url'))) // proc_run('php',"include/directory.php","$url"); - $recips = q("SELECT DISTINCT(`batch`), `id`, `name`,`network` FROM `contact` WHERE `network` = '%s' - AND `uid` = %d AND `rel` != %d ORDER BY rand() ", + $recips = q("SELECT `id`,`name`,`network`,`pubkey`,`notify` FROM `contact` WHERE `network` = '%s' + AND `uid` = %d AND `rel` != %d ", dbesc(NETWORK_DIASPORA), intval(local_user()), intval(CONTACT_IS_SHARING) @@ -101,7 +101,7 @@ function profile_change() { logger('profile_change: ' . $msg, LOGGER_ALL); foreach($recips as $recip) { - $msgtosend = diaspora_msg_build($msg,$a->user,$recip,$a->user['prvkey'],null,true); - add_to_queue($recip['id'],NETWORK_DIASPORA,$msgtosend,true); + $msgtosend = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$a->user,$recip,$a->user['prvkey'],$recip['pubkey'],false))); + add_to_queue($recip['id'],NETWORK_DIASPORA,$msgtosend,false); } }