build_sync_packet was looking at stale channel info - load it fresh from the DB.
This commit is contained in:
parent
65c8100948
commit
e822ab65d7
@ -1502,13 +1502,20 @@ function build_sync_packet($uid = 0, $packet = null) {
|
|||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
logger('build_sync_packet');
|
logger('build_sync_packet');
|
||||||
|
|
||||||
if(! $uid)
|
if(! $uid)
|
||||||
$uid = local_user();
|
$uid = local_user();
|
||||||
|
|
||||||
if(! $uid)
|
if(! $uid)
|
||||||
return;
|
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'",
|
$h = q("select * from hubloc where hubloc_hash = '%s'",
|
||||||
dbesc($channel['channel_hash'])
|
dbesc($channel['channel_hash'])
|
||||||
|
Reference in New Issue
Block a user