readonly support for polling

This commit is contained in:
Mike Macgirvin 2010-07-28 01:29:45 -07:00
parent fa154248dc
commit 887a324956

View file

@ -20,7 +20,7 @@ if($argc < 2)
$a->set_baseurl($argv[1]);
$contacts = q("SELECT * FROM `contact` WHERE `dfrn-id` != '' AND `self` = 0 ORDER BY RAND()");
$contacts = q("SELECT * FROM `contact` WHERE `dfrn-id` != '' AND `self` = 0 AND `blocked` = 0 AND `readonly` = 0 ORDER BY RAND()");
if(! count($contacts))
killme();