don't send wall-post notifications when creating webpages on another channel

This commit is contained in:
redmatrix 2015-12-25 14:59:46 -08:00
parent 6db6fef29f
commit b1a77b2235

View File

@ -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'],