aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-29 16:30:11 -0800
committerfriendica <info@friendica.com>2013-12-29 16:30:11 -0800
commit3f110567a1cf82b1bcf324cfe15e53460fb5dd04 (patch)
tree7de80839b3e3cfc4688ba8d52502979b452bc9a4 /mod
parentc03c0724ed5190c720e8f6446c742d4078db43db (diff)
downloadvolse-hubzilla-3f110567a1cf82b1bcf324cfe15e53460fb5dd04.tar.gz
volse-hubzilla-3f110567a1cf82b1bcf324cfe15e53460fb5dd04.tar.bz2
volse-hubzilla-3f110567a1cf82b1bcf324cfe15e53460fb5dd04.zip
handle exclusive tags and add to ACL
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index 8eec4aad9..74d87e732 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -494,6 +494,10 @@ function item_post(&$a) {
logger('handle_tag: ' . print_r($success,tue));
if($inform) {
logger('inform: ' . $tag . ' ' . print_r($inform,true));
+ if(strpos($inform,'cid:') === 0) {
+ $str_contact_allow .= '<' . substr($inform,4) . '>';
+ $inform = '';
+ }
}
if($success['replaced']) {
$tagged[] = $tag;
@@ -987,9 +991,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) {
$newname = $r[0]['xchan_name'];
//add person's id to $inform if exclusive
if($exclusive) {
- if(strlen($inform))
- $inform .= ',';
- $inform .= 'cid:' . $r[0]['abook_id'];
+ $inform .= 'cid:' . $r[0]['xchan_hash'];
}
}