From 9a6511dc38680c635baffb777cd7575339fd59f8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 13 Jun 2015 09:12:28 +0200 Subject: [PATCH] Send a salmon notification when its a ostatus thread or you reply to an ostatus message --- include/notifier.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/notifier.php b/include/notifier.php index ce04a139bb..19f0134729 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -328,7 +328,8 @@ function notifier_run(&$argv, &$argc){ // We notify Friendica users in the thread when it is an OStatus thread. // Hopefully this transfers the messages to the other Friendica servers. (Untested) if ($parent["network"] == NETWORK_OSTATUS) { - $r = q("SELECT `author-link` FROM `item` WHERE `parent` = %d", intval($target_item["parent"])); + $r = q("SELECT `author-link` FROM `item` WHERE `parent` = %d AND `author-link` != '%s'", + intval($target_item["parent"]), dbesc($owner['url'])); foreach($r as $parent_item) { $probed_contact = probe_url($parent_item["author-link"]); if (($probed_contact["notify"] != "") AND ($probed_contact["network"] == NETWORK_DFRN)) { -- 2.39.5