aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index c6feb9174..eaaf30fff 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1587,6 +1587,12 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
$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;
+ }
+
if($d['hash'] === $sender['hash']) {
$DR->update('self delivery ignored');