For private messages, use hush-hush ultra top-secret mode by default

This commit is contained in:
friendica
2012-11-18 19:19:16 -08:00
parent 8611c3da68
commit db77309bc3
3 changed files with 14 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ require_once('include/Photo.php');
function collect_recipients($item) {
function collect_recipients($item,&$private) {
if($item['allow_cid'] || $item['allow_gid'] || $item['deny_cid'] || $item['deny_gid']) {
$allow_people = expand_acl($item['allow_cid']);
@@ -18,6 +18,7 @@ function collect_recipients($item) {
$recipients = array_unique(array_merge($allow_people,$allow_groups));
$deny = array_unique(array_merge($deny_people,$deny_groups));
$recipients = array_diff($recipients,$deny);
$private = true;
}
else {
$recipients = array();
@@ -31,6 +32,7 @@ function collect_recipients($item) {
$recipients[] = $rr['abook_xchan'];
}
}
$private = false;
}
return $recipients;
}