From: friendica Date: Thu, 24 Jan 2013 01:46:46 +0000 (-0800) Subject: suppress duplicate comment notifications X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f542653230c30fa9f1bc7ba565079bf3feb9accb;p=friendica.git suppress duplicate comment notifications --- diff --git a/include/enotify.php b/include/enotify.php index 9c405c101b..d9f100831c 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -56,12 +56,13 @@ function notification($params) { $parent_id = $params['parent']; - // Check to see if there was already a tag notify for this post. + // Check to see if there was already a tag notify or comment notify for this post. // If so don't create a second notification $p = null; - $p = q("select id from notify where type = %d and link = '%s' and uid = %d limit 1", + $p = q("select id from notify where ( type = %d or type = %d ) and link = '%s' and uid = %d limit 1", intval(NOTIFY_TAGSELF), + intval(NOTIFY_COMMENT), dbesc($params['link']), intval($params['uid']) );