aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-18 19:19:16 -0800
committerfriendica <info@friendica.com>2012-11-18 19:19:16 -0800
commitdb77309bc399669c5c98f4fac99f2d5f96cfbaeb (patch)
tree0c36049a0014afcc89d6b30a4a0a556d896afa61 /include/items.php
parent8611c3da683b9d3aa742559c192b0f9237256431 (diff)
downloadvolse-hubzilla-db77309bc399669c5c98f4fac99f2d5f96cfbaeb.tar.gz
volse-hubzilla-db77309bc399669c5c98f4fac99f2d5f96cfbaeb.tar.bz2
volse-hubzilla-db77309bc399669c5c98f4fac99f2d5f96cfbaeb.zip
For private messages, use hush-hush ultra top-secret mode by default
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 84c74fd83..5a8ecb540 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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;
}