aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-02 22:14:31 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-02 22:14:31 +0100
commitf826c09abc48a522c1a27b44a3fda1e337d90a1a (patch)
treef53302b072bae510e4d07d72c89b4238614df458 /include/channel.php
parente418a6b3d498cb237bd8f6dd01f40fe57d4a868d (diff)
parent3bd7133ba32d758df935a566c45515a530b35538 (diff)
downloadvolse-hubzilla-f826c09abc48a522c1a27b44a3fda1e337d90a1a.tar.gz
volse-hubzilla-f826c09abc48a522c1a27b44a3fda1e337d90a1a.tar.bz2
volse-hubzilla-f826c09abc48a522c1a27b44a3fda1e337d90a1a.zip
Merge remote-tracking branch 'mike/master' into dev
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;
+ }
}
}