From 8b545d91db1bec0881645a989f4d7fc146397154 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 26 Jun 2014 16:24:53 -0700 Subject: notification being sent for comments from blocked connections on same site. --- mod/item.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/item.php b/mod/item.php index 5ddafb709..693c64eca 100644 --- a/mod/item.php +++ b/mod/item.php @@ -781,7 +781,11 @@ function item_post(&$a) { logger('mod_item: saved item ' . $post_id); if($parent) { - if($datarray['owner_xchan'] != $datarray['author_xchan']) { + + // only send comment notification if this is a wall-to-wall comment, + // otherwise it will happen during delivery + + if(($datarray['owner_xchan'] != $datarray['author_xchan']) && ($parent_item['item_flags'] & ITEM_WALL)) { notification(array( 'type' => NOTIFY_COMMENT, 'from_xchan' => $datarray['author_xchan'], -- cgit v1.2.3