aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-17 18:29:57 -0800
committerfriendica <info@friendica.com>2014-11-17 18:29:57 -0800
commitaf9015c8ed7fa99b9639dd8c7746f8f658835187 (patch)
tree5cacc9ed1faff709f1022730cbb7b478ad1a7e47
parent913dafc5937e876250c2f177e303f226e8255093 (diff)
downloadvolse-hubzilla-af9015c8ed7fa99b9639dd8c7746f8f658835187.tar.gz
volse-hubzilla-af9015c8ed7fa99b9639dd8c7746f8f658835187.tar.bz2
volse-hubzilla-af9015c8ed7fa99b9639dd8c7746f8f658835187.zip
place holder
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 6447de4e7..19de52e92 100755
--- a/include/items.php
+++ b/include/items.php
@@ -66,6 +66,8 @@ function collect_recipients($item,&$private_envelope) {
// by the directives in $item['public_policy'].
$private_envelope = false;
+ require_once('include/identity.php');
+ $sys = get_sys_channel();
if(array_key_exists('public_policy',$item) && $item['public_policy'] !== 'self') {
$r = q("select abook_xchan, xchan_network from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d)>0 ",
@@ -95,6 +97,9 @@ function collect_recipients($item,&$private_envelope) {
}
}
}
+// we probably want to check that discovery channel delivery is allowed before uncommenting this.
+// if($policy === 'pub')
+// $recipients[] = $sys['xchan_hash'];
}
}