]> git.mxchange.org Git - friendica.git/commitdiff
Only distribute items to active contacts
authorMichael <heluecht@pirati.ca>
Tue, 20 Dec 2016 07:13:22 +0000 (07:13 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 20 Dec 2016 07:13:22 +0000 (07:13 +0000)
include/notifier.php

index 812752a55c2ac2975834be4154de455d3c052cc7..58240557bb87f6ebe67867c49e11ba1dc0030d8d 100644 (file)
@@ -575,7 +575,7 @@ function notifier_run(&$argv, &$argc){
                        $r0 = array();
 
                $r1 = q("SELECT DISTINCT(`batch`), `id`, `name`,`network` FROM `contact` WHERE `network` = '%s'
-                       AND `uid` = %d AND `rel` != %d group by `batch` ORDER BY rand() ",
+                       AND `uid` = %d AND `rel` != %d AND NOT `blocked` AND NOT `pending` AND NOT `archive` GROUP BY `batch` ORDER BY rand()",
                        dbesc(NETWORK_DIASPORA),
                        intval($owner['uid']),
                        intval(CONTACT_IS_SHARING)