notification being sent for comments from blocked connections on same site.

This commit is contained in:
friendica 2014-06-26 16:24:53 -07:00
parent 6d891fbb9d
commit 8b545d91db
3 changed files with 7 additions and 2 deletions

View File

@ -3603,6 +3603,7 @@ function drop_items($items) {
function drop_item($id,$interactive = true,$stage = DROPITEM_NORMAL) {
$a = get_app();
// locate item to be deleted

View File

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

View File

@ -1 +1 @@
2014-06-25.717
2014-06-26.718