From ade81747503fe64fc3c7f99e0e3ff34b7d6cc3e7 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 19 Jul 2013 01:20:51 -0700 Subject: private pokes - perhaps a little *too* private. --- mod/lockview.php | 4 ++-- mod/poke.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/lockview.php b/mod/lockview.php index 7dda85623..fb6ccd2f4 100644 --- a/mod/lockview.php +++ b/mod/lockview.php @@ -47,7 +47,7 @@ function lockview_content(&$a) { stringify_array_elms($allowed_users,true); stringify_array_elms($deny_groups,true); stringify_array_elms($deny_users,true); - +dbg(1); if(count($allowed_groups)) { $r = q("SELECT name FROM `group` WHERE hash IN ( " . implode(', ', $allowed_groups) . " )"); if($r) @@ -72,7 +72,7 @@ function lockview_content(&$a) { foreach($r as $rr) $l[] = '' . $rr['xchan_name'] . ''; } - +dbg(0); echo $o . implode(', ', $l); killme(); diff --git a/mod/poke.php b/mod/poke.php index 6cf0c97f1..b22f7d9d5 100755 --- a/mod/poke.php +++ b/mod/poke.php @@ -79,7 +79,7 @@ function poke_init(&$a) { $item_private = ((x($_GET,'private')) ? intval($_GET['private']) : 0); - $allow_cid = (($item_private) ? '<' . $target['abook_hash']. '>' : $channel['channel_allow_cid']); + $allow_cid = (($item_private) ? '<' . $target['abook_xchan']. '>' : $channel['channel_allow_cid']); $allow_gid = (($item_private) ? '' : $channel['channel_allow_gid']); $deny_cid = (($item_private) ? '' : $channel['channel_deny_cid']); $deny_gid = (($item_private) ? '' : $channel['channel_deny_gid']); -- cgit v1.2.3