diff options
author | friendica <info@friendica.com> | 2014-04-11 20:12:40 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-11 20:12:40 -0700 |
commit | 2b3697c27a994e4465271fa720b50ef5a5e88f41 (patch) | |
tree | a4646f7462c42cfde654d5a6a798dc6e23822e61 /mod | |
parent | f93b56de5538d32c9171750833d404d741128df3 (diff) | |
download | volse-hubzilla-2b3697c27a994e4465271fa720b50ef5a5e88f41.tar.gz volse-hubzilla-2b3697c27a994e4465271fa720b50ef5a5e88f41.tar.bz2 volse-hubzilla-2b3697c27a994e4465271fa720b50ef5a5e88f41.zip |
the auto-complete part
Diffstat (limited to 'mod')
-rw-r--r-- | mod/acl.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mod/acl.php b/mod/acl.php index ed9e935e9..13ee7b666 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -206,6 +206,19 @@ function acl_init(&$a){ if(count($r)) { foreach($r as $g){ + if($g['abook_their_perms'] & PERMS_W_TAGWALL) { + $contacts[] = array( + "type" => "c", + "photo" => $g['micro'], + "name" => $g['name'] . '+', + "id" => $g['id'] . '+', + "xid" => $g['hash'], + "link" => $g['nick'], + "nick" => substr($g['nick'],0,strpos($g['nick'],'@')) . ' ' . t('plus connections'), + "self" => (($g['abook_flags'] & ABOOK_FLAG_SELF) ? 'abook-self' : ''), + "taggable" => 'taggable' + ); + } $contacts[] = array( "type" => "c", "photo" => $g['micro'], @@ -215,7 +228,7 @@ function acl_init(&$a){ "link" => $g['nick'], "nick" => substr($g['nick'],0,strpos($g['nick'],'@')), "self" => (($g['abook_flags'] & ABOOK_FLAG_SELF) ? 'abook-self' : ''), - "taggable" => (($g['abook_their_perms'] & PERMS_W_TAGWALL) ? 'taggable' : '') + "taggable" => '' ); } } |