From 3a8e1e04844fea2331525d82d8234b7006a12037 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 28 Sep 2015 19:04:36 -0700 Subject: process_delivery: ignore self --- include/zot.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 6769241cb..635c36774 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1584,6 +1584,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; + } + // allow public postings to the sys channel regardless of permissions, but not // for comments travelling upstream. Wait and catch them on the way down. -- cgit v1.2.3