aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-13 04:51:55 -0700
committerfriendica <info@friendica.com>2013-09-13 04:51:55 -0700
commit83e086edcd4d13b2e8508eb17a24a849c8e3aa06 (patch)
treed905629111a7d15dab4d4a14a9ece14bc8dad206 /include
parentcf87653a922f3b7f6132a00bb77293ae9e7a66c1 (diff)
downloadvolse-hubzilla-83e086edcd4d13b2e8508eb17a24a849c8e3aa06.tar.gz
volse-hubzilla-83e086edcd4d13b2e8508eb17a24a849c8e3aa06.tar.bz2
volse-hubzilla-83e086edcd4d13b2e8508eb17a24a849c8e3aa06.zip
doc update, put more telemetry on notifier and try to ensure that private posts have recipients.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php3
-rw-r--r--include/notifier.php4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index e987a69b1..c83eceabe 100755
--- a/include/items.php
+++ b/include/items.php
@@ -18,6 +18,9 @@ function collect_recipients($item,&$private) {
require_once('include/group.php');
+ if($item['item_private'])
+ $private = true;
+
if($item['allow_cid'] || $item['allow_gid'] || $item['deny_cid'] || $item['deny_gid']) {
$allow_people = expand_acl($item['allow_cid']);
$allow_groups = expand_groups(expand_acl($item['allow_gid']));
diff --git a/include/notifier.php b/include/notifier.php
index e813f7951..e1f150bf2 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -372,6 +372,10 @@ function notifier_run($argv, $argc){
}
}
+ if(($private) && (! $env_recips)) {
+ // shouldn't happen
+ logger('notifier: private message with no envelope recipients.' . print_r($argv,true));
+ }
logger('notifier: recipients (may be delivered to more if public): ' . print_r($recip_list,true), LOGGER_DEBUG);