aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-08-30 06:14:22 -0400
committerAndrew Manning <tamanning@zoho.com>2016-08-30 06:14:22 -0400
commitad5c93d6738d705b9ca196cc7481c26a3a9b9962 (patch)
treeca090d4dcb461dc46ba79d726c39cda388deeef6 /include/items.php
parentb05474fc30cad393bd4fbf244d2afbbbe2e5f86e (diff)
parent202b757bc46d17b324f79751ce754e16ba737386 (diff)
downloadvolse-hubzilla-ad5c93d6738d705b9ca196cc7481c26a3a9b9962.tar.gz
volse-hubzilla-ad5c93d6738d705b9ca196cc7481c26a3a9b9962.tar.bz2
volse-hubzilla-ad5c93d6738d705b9ca196cc7481c26a3a9b9962.zip
Merge remote-tracking branch 'upstream/dev' into website-export
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index ac746c189..53a7b7927 100755
--- a/include/items.php
+++ b/include/items.php
@@ -113,6 +113,26 @@ function collect_recipients($item, &$private_envelope) {
// if($policy === 'pub')
// $recipients[] = $sys['xchan_hash'];
}
+
+ // Add the authors of any posts in this thread, if they are known to us.
+ // This is specifically designed to forward wall-to-wall posts to the original author,
+ // in case they aren't a connection but have permission to write on our wall.
+ // This is important for issue tracker channels. It should be a no-op for most channels.
+ // Whether or not they will accept the delivery is not determined here, but should
+ // be taken into account by zot:process_delivery()
+
+ $r = q("select author_xchan from item where parent = %d",
+ intval($item['parent'])
+ );
+ if($r) {
+ foreach($r as $rv) {
+ if(! in_array($rv['author_xchan'],$recipients)) {
+ $recipients[] = $rv['author_xchan'];
+ }
+ }
+ }
+
+
}
// This is a somewhat expensive operation but important.