handle exclusive tags and add to ACL
This commit is contained in:
parent
c03c0724ed
commit
3f110567a1
@ -494,6 +494,10 @@ function item_post(&$a) {
|
|||||||
logger('handle_tag: ' . print_r($success,tue));
|
logger('handle_tag: ' . print_r($success,tue));
|
||||||
if($inform) {
|
if($inform) {
|
||||||
logger('inform: ' . $tag . ' ' . print_r($inform,true));
|
logger('inform: ' . $tag . ' ' . print_r($inform,true));
|
||||||
|
if(strpos($inform,'cid:') === 0) {
|
||||||
|
$str_contact_allow .= '<' . substr($inform,4) . '>';
|
||||||
|
$inform = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if($success['replaced']) {
|
if($success['replaced']) {
|
||||||
$tagged[] = $tag;
|
$tagged[] = $tag;
|
||||||
@ -987,9 +991,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) {
|
|||||||
$newname = $r[0]['xchan_name'];
|
$newname = $r[0]['xchan_name'];
|
||||||
//add person's id to $inform if exclusive
|
//add person's id to $inform if exclusive
|
||||||
if($exclusive) {
|
if($exclusive) {
|
||||||
if(strlen($inform))
|
$inform .= 'cid:' . $r[0]['xchan_hash'];
|
||||||
$inform .= ',';
|
|
||||||
$inform .= 'cid:' . $r[0]['abook_id'];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user