diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-22 12:35:17 -0700 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2017-10-22 21:49:34 +0200 |
commit | 8c57ed64d08b0ccea08431d97d5510a28aa8a2a7 (patch) | |
tree | 625503a8889e18a15aa5260d9b8b5b1e1da9d27c | |
parent | d0bc81f8d2ff65833135e5d8e3485eb581a727a1 (diff) | |
download | volse-hubzilla-8c57ed64d08b0ccea08431d97d5510a28aa8a2a7.tar.gz volse-hubzilla-8c57ed64d08b0ccea08431d97d5510a28aa8a2a7.tar.bz2 volse-hubzilla-8c57ed64d08b0ccea08431d97d5510a28aa8a2a7.zip |
wrong key
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php index 55632fc31..dad30dbb0 100644 --- a/include/zot.php +++ b/include/zot.php @@ -361,8 +361,6 @@ function zot_refresh($them, $channel = null, $force = false) { else $permissions = $j['permissions']; - $connected_set = false; - if($permissions && is_array($permissions)) { $old_read_stream_perm = get_abconfig($channel['channel_id'],$x['hash'],'their_perms','view_stream'); @@ -4177,7 +4175,7 @@ function zotinfo($arr) { if($ztarget_hash) { $permissions['connected'] = false; - $b = q("select * from abook where abook_xchan = '%s' and abook_channel = %d limit 1", + $b = q("select * from abook where abook_xchan = '%s' and abook_channel = %d and abook_pending = 0 limit 1", dbesc($ztarget_hash), intval($e['channel_id']) ); @@ -4201,7 +4199,7 @@ function zotinfo($arr) { if($x) $ret['locations'] = $x; - $ret['site'] = zot_site_info($e['xchan_pubkey']); + $ret['site'] = zot_site_info($e['channel_prvkey']); check_zotinfo($e,$x,$ret); |