diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 19:05:45 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 19:05:45 -0700 |
commit | 8a3c909c74285177bc801d94d49122aca274836e (patch) | |
tree | fc705a0644360709aeda9664c987a36c1b8cfbe5 | |
parent | 3b53cd56ef151586024cb99742a91d4a75afdb5b (diff) | |
download | volse-hubzilla-8a3c909c74285177bc801d94d49122aca274836e.tar.gz volse-hubzilla-8a3c909c74285177bc801d94d49122aca274836e.tar.bz2 volse-hubzilla-8a3c909c74285177bc801d94d49122aca274836e.zip |
ignore self delivery in process_delivery
-rw-r--r-- | include/zot.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/zot.php b/include/zot.php index 7c9bdca97..c6feb9174 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1588,13 +1588,11 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $ $DR->addto_recipient($channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>'); -// uncomment this once we find out what's stopping the clone sync of the item from working -// if($d['hash'] === $sender['hash']) { -// $DR->update('self delivery ignored'); -// $result[] = $DR->get(); -// continue; -// } - + 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. |