diff options
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) { |