this should finish up hubzilla issue #113

This commit is contained in:
zotlabs
2018-01-03 12:16:05 +01:00
committed by Mario
parent 66d0b4d0d5
commit 301e5383c7
4 changed files with 30 additions and 9 deletions
+7 -2
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;
}
}
}