aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-14 20:16:40 -0700
committerfriendica <info@friendica.com>2014-06-14 20:16:40 -0700
commit0f6c321e3f23d43e407aa3b3b424f20b56e0032d (patch)
treef18d04fefe1ce24447dc3f824dfde711cacabb0e /include
parentb67c8ec8b99f5a552c08afaedf022b088e55ef47 (diff)
downloadvolse-hubzilla-0f6c321e3f23d43e407aa3b3b424f20b56e0032d.tar.gz
volse-hubzilla-0f6c321e3f23d43e407aa3b3b424f20b56e0032d.tar.bz2
volse-hubzilla-0f6c321e3f23d43e407aa3b3b424f20b56e0032d.zip
only show jotnets when posting conversation items
Diffstat (limited to 'include')
-rw-r--r--include/acl_selectors.php6
1 files changed, 4 insertions, 2 deletions
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(