diff options
author | Friendika <info@friendika.com> | 2011-11-01 00:50:41 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-11-01 00:50:41 -0700 |
commit | f4518c646a588177e93a05363f07b61dce3fb563 (patch) | |
tree | bedbd28944b5ce19564fc2b362ffb9938b293c07 /include/profile_update.php | |
parent | 58d21fe20a0b5218885b9422af5db750682dabad (diff) | |
download | volse-hubzilla-f4518c646a588177e93a05363f07b61dce3fb563.tar.gz volse-hubzilla-f4518c646a588177e93a05363f07b61dce3fb563.tar.bz2 volse-hubzilla-f4518c646a588177e93a05363f07b61dce3fb563.zip |
fixes to diaspora profiles, batch mode duplicates, social graph table name
Diffstat (limited to 'include/profile_update.php')
-rw-r--r-- | include/profile_update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/profile_update.php b/include/profile_update.php index f2a806cfd..bd7f678ed 100644 --- a/include/profile_update.php +++ b/include/profile_update.php @@ -16,7 +16,7 @@ function profile_change() { // 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() ", + AND `uid` = %d AND `rel` != %d group by `batch` ORDER BY rand() ", 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); + $msgtosend = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$a->user,$recip,$a->user['prvkey'],null,true))); add_to_queue($recip['id'],NETWORK_DIASPORA,$msgtosend,true); } } |