aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-25 20:10:53 -0700
committerfriendica <info@friendica.com>2013-07-25 20:10:53 -0700
commite822ab65d7a3321b063725b52b32d392ad1c428b (patch)
treed41f498ded17cdde5df91ce1e9c8481bbdcdb8bb /include/zot.php
parent65c8100948b948b35a122ec0104ecb623d3249fa (diff)
downloadvolse-hubzilla-e822ab65d7a3321b063725b52b32d392ad1c428b.tar.gz
volse-hubzilla-e822ab65d7a3321b063725b52b32d392ad1c428b.tar.bz2
volse-hubzilla-e822ab65d7a3321b063725b52b32d392ad1c428b.zip
build_sync_packet was looking at stale channel info - load it fresh from the DB.
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index f1cfcc070..0d509b3b4 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1502,13 +1502,20 @@ function build_sync_packet($uid = 0, $packet = null) {
$a = get_app();
logger('build_sync_packet');
+
if(! $uid)
$uid = local_user();
if(! $uid)
return;
- $channel = $a->get_channel();
+ $r = q("select * from channel where channel_id = %d limit 1",
+ intval($uid)
+ );
+ if(! $r)
+ return;
+
+ $channel = $r[0];
$h = q("select * from hubloc where hubloc_hash = '%s'",
dbesc($channel['channel_hash'])