this should finish up hubzilla issue #113

This commit is contained in:
zotlabs
2017-12-31 14:45:42 -08:00
parent 45923f408f
commit ce38350e00
4 changed files with 30 additions and 9 deletions

View File

@@ -1982,12 +1982,17 @@ function get_channel_default_perms($uid) {
}
function profiles_build_sync($channel_id) {
function profiles_build_sync($channel_id,$send = true) {
$r = q("select * from profile where uid = %d",
intval($channel_id)
);
if($r) {
build_sync_packet($channel_id,array('profile' => $r));
if($send) {
build_sync_packet($channel_id,array('profile' => $r));
}
else {
return $r;
}
}
}