From 0f6c321e3f23d43e407aa3b3b424f20b56e0032d Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 14 Jun 2014 20:16:40 -0700 Subject: only show jotnets when posting conversation items --- include/acl_selectors.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/acl_selectors.php') diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 6ce4c3f9b..8d94264e4 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -211,7 +211,7 @@ function fixacl(&$item) { $item = str_replace(array('<','>'),array('',''),$item); } -function populate_acl($defaults = null,$unused = false) { +function populate_acl($defaults = null,$show_jotnets = true) { $allow_cid = $allow_gid = $deny_cid = $deny_gid = false; @@ -231,7 +231,9 @@ function populate_acl($defaults = null,$unused = false) { } $jotnets = ''; - call_hooks('jot_networks', $jotnets); + if($show_jotnets) { + call_hooks('jot_networks', $jotnets); + } $tpl = get_markup_template("acl_selector.tpl"); $o = replace_macros($tpl, array( -- cgit v1.2.3