probable fix for #509 - errant comment notifications provided on delayed (duplicate delivery) top level posts which are probably coming from clones

This commit is contained in:
redmatrix 2016-09-19 14:42:56 -07:00
parent 6c4f9f324b
commit 0011b8fd48

View File

@ -2291,6 +2291,11 @@ function store_diaspora_comment_sig($datarray, $channel, $parent_item, $post_id,
function send_status_notifications($post_id,$item) {
// only send notifications for comments
if($item['mid'] == $item['parent_mid'])
return;
$notify = false;
$unfollowed = false;
@ -2306,6 +2311,7 @@ function send_status_notifications($post_id,$item) {
if($item['author_xchan'] === $r[0]['channel_hash'])
return;
// I'm the owner - notify me
if($item['owner_hash'] === $r[0]['channel_hash'])