aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-23 22:00:16 -0700
committerfriendica <info@friendica.com>2014-10-23 22:00:16 -0700
commit1a9b8d4f0c89436d26f3e2e4aafb81c2e62fc8c2 (patch)
treef10cbcf6bb64fb217071bcc4051772330ba6119e /mod
parent34781433c1fabd7a4992497da5ee475db0ada3a8 (diff)
downloadvolse-hubzilla-1a9b8d4f0c89436d26f3e2e4aafb81c2e62fc8c2.tar.gz
volse-hubzilla-1a9b8d4f0c89436d26f3e2e4aafb81c2e62fc8c2.tar.bz2
volse-hubzilla-1a9b8d4f0c89436d26f3e2e4aafb81c2e62fc8c2.zip
don't offer forum (@name+) completion in comments, since it won't do anything.
Diffstat (limited to 'mod')
-rw-r--r--mod/acl.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/acl.php b/mod/acl.php
index 5658a05c5..7eb180cc4 100644
--- a/mod/acl.php
+++ b/mod/acl.php
@@ -11,7 +11,7 @@ function acl_init(&$a){
$count = (x($_REQUEST,'count')?$_REQUEST['count']:100);
$search = (x($_REQUEST,'search')?$_REQUEST['search']:"");
$type = (x($_REQUEST,'type')?$_REQUEST['type']:"");
-
+ $noforums = (x($_REQUEST,'n') ? $_REQUEST['n'] : false);
// For use with jquery.autocomplete for private mail completion
@@ -230,7 +230,7 @@ function acl_init(&$a){
if(strpos($g['hash'],'/'))
continue;
- if(($g['abook_their_perms'] & PERMS_W_TAGWALL) && $type == 'c') {
+ if(($g['abook_their_perms'] & PERMS_W_TAGWALL) && $type == 'c' && (! $noforums)) {
$contacts[] = array(
"type" => "c",
"photo" => "images/twopeople.png",