From b1a77b2235e534f2b01c8b1bb9566a2e5085d43f Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 25 Dec 2015 14:59:46 -0800 Subject: don't send wall-post notifications when creating webpages on another channel --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/item.php b/mod/item.php index bda33f4b3..eecc3a9ac 100644 --- a/mod/item.php +++ b/mod/item.php @@ -919,7 +919,7 @@ function item_post(&$a) { else { $parent = $post_id; - if($datarray['owner_xchan'] != $datarray['author_xchan']) { + if(($datarray['owner_xchan'] != $datarray['author_xchan']) && ($datarray['item_type'] == ITEM_TYPE_POST)) { notification(array( 'type' => NOTIFY_WALL, 'from_xchan' => $datarray['author_xchan'], -- cgit v1.2.3