diff options
author | friendica <info@friendica.com> | 2014-06-17 17:34:51 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-17 17:34:51 -0700 |
commit | dafd3a9e43dbcde07fb900c27cb7f386a40900ce (patch) | |
tree | 595ac46b93c05da7fd69040960f3c09645eccb41 /mod | |
parent | 70b99ee23bbe88f4ff1cc231a87f9e53d27ff6fb (diff) | |
download | volse-hubzilla-dafd3a9e43dbcde07fb900c27cb7f386a40900ce.tar.gz volse-hubzilla-dafd3a9e43dbcde07fb900c27cb7f386a40900ce.tar.bz2 volse-hubzilla-dafd3a9e43dbcde07fb900c27cb7f386a40900ce.zip |
sync profiles to nomadic clones
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profiles.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index 481680a12..2e91db600 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -419,13 +419,22 @@ function profiles_post(&$a) { dbesc($work), dbesc($education), intval($hide_friends), - intval($a->argv[1]), + intval(argv(1)), intval(local_user()) ); if($r) info( t('Profile updated.') . EOL); + $r = q("select * from profile where id = %d and uid = %d limit 1", + intval(argv(1)), + intval(local_user()) + ); + if($r) { + require_once('include/zot.php'); + build_sync_packet(local_user(),array('profile' => $r)); + } + $channel = $a->get_channel(); if($namechanged && $is_default) { |