aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 04:04:51 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 04:04:51 -0700
commit2869ccfe39cbda4974a82c303eeeb4e38966b126 (patch)
tree0038f63f531f8121e67a3931f19dfda019ab6044 /include/zot.php
parent8ead4745f82d113c943f79967e04ea985ec45ad0 (diff)
downloadvolse-hubzilla-2869ccfe39cbda4974a82c303eeeb4e38966b126.tar.gz
volse-hubzilla-2869ccfe39cbda4974a82c303eeeb4e38966b126.tar.bz2
volse-hubzilla-2869ccfe39cbda4974a82c303eeeb4e38966b126.zip
delivery reports - crude but mostly functional at least for zot deliveries
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index 942998b98..fb55da0fa 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1579,15 +1579,16 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
continue;
}
+ $channel = $r[0];
+ $DR->addto_recipient($channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>');
+
+
if($d['hash'] === $sender['hash']) {
$DR->update('self delivery ignored');
$result[] = $DR->get();
continue;
}
- $channel = $r[0];
- $DR->addto_recipient($channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>');
-
// allow public postings to the sys channel regardless of permissions, but not
// for comments travelling upstream. Wait and catch them on the way down.