aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-19 14:42:56 -0700
committerredmatrix <mike@macgirvin.com>2016-09-19 14:42:56 -0700
commit0011b8fd4809f4e8eb3f21dc036714493e45c5b4 (patch)
tree703dbf985b3d4db86bbd62279c7ddbc43ba57618 /include/items.php
parent6c4f9f324b6351a12d14a0c5170ae77ca85ac58f (diff)
downloadvolse-hubzilla-0011b8fd4809f4e8eb3f21dc036714493e45c5b4.tar.gz
volse-hubzilla-0011b8fd4809f4e8eb3f21dc036714493e45c5b4.tar.bz2
volse-hubzilla-0011b8fd4809f4e8eb3f21dc036714493e45c5b4.zip
probable fix for #509 - errant comment notifications provided on delayed (duplicate delivery) top level posts which are probably coming from clones
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 9079621a3..f2be2a114 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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'])