diff options
author | friendica <info@friendica.com> | 2014-06-26 16:24:53 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-26 16:24:53 -0700 |
commit | 8b545d91db1bec0881645a989f4d7fc146397154 (patch) | |
tree | b538faa78dff4f688672d05b61526aa4cc1e7825 /mod/item.php | |
parent | 6d891fbb9d5308b48d050e0a4be6394a6e826a88 (diff) | |
download | volse-hubzilla-8b545d91db1bec0881645a989f4d7fc146397154.tar.gz volse-hubzilla-8b545d91db1bec0881645a989f4d7fc146397154.tar.bz2 volse-hubzilla-8b545d91db1bec0881645a989f4d7fc146397154.zip |
notification being sent for comments from blocked connections on same site.
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 6 |
1 files changed, 5 insertions, 1 deletions
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'], |