aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-31 14:45:42 -0800
committerzotlabs <mike@macgirvin.com>2017-12-31 14:45:42 -0800
commitce38350e003cc7c8925f2fe3054bc7fb277e29a0 (patch)
treedcbb59a4692f70b11356a70c5b454cc2d5800ae1 /include/channel.php
parent45923f408fcbb10f469c6cd654c696d1b7da70a1 (diff)
downloadvolse-hubzilla-ce38350e003cc7c8925f2fe3054bc7fb277e29a0.tar.gz
volse-hubzilla-ce38350e003cc7c8925f2fe3054bc7fb277e29a0.tar.bz2
volse-hubzilla-ce38350e003cc7c8925f2fe3054bc7fb277e29a0.zip
this should finish up hubzilla issue #113
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php
index 2d40b7db6..b9adc588b 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -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;
+ }
}
}