sync profiles to nomadic clones

This commit is contained in:
friendica
2014-06-17 17:34:51 -07:00
parent 70b99ee23b
commit dafd3a9e43
3 changed files with 50 additions and 2 deletions

View File

@@ -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) {