diff options
author | Friendika <info@friendika.com> | 2011-01-23 20:09:34 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-23 20:09:34 -0800 |
commit | 5be98e3ec8b0475dc67504967cac695d9e4a129a (patch) | |
tree | 50770afdcd94bde11969280db22d00b4c919170e /include/poller.php | |
parent | 00d2b583588ea1c55e9b478809e8041d6ba98639 (diff) | |
download | volse-hubzilla-5be98e3ec8b0475dc67504967cac695d9e4a129a.tar.gz volse-hubzilla-5be98e3ec8b0475dc67504967cac695d9e4a129a.tar.bz2 volse-hubzilla-5be98e3ec8b0475dc67504967cac695d9e4a129a.zip |
following random feeds
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php index 8234becbb..024b9fbcd 100644 --- a/include/poller.php +++ b/include/poller.php @@ -32,10 +32,18 @@ if(($argc > 1) && ($argv[1] == 'force')) $force = true; + if(($argc > 1) && intval($argv[1])) { + $manual_id = intval($argv[1]); + $force = true; + } + + $sql_extra = (($manual_id) ? " AND `id` = $manual_id " : ""); + // 'stat' clause is a temporary measure until we have federation subscriptions working both directions $contacts = q("SELECT * FROM `contact` WHERE ( ( `network` = 'dfrn' AND ( `dfrn-id` != '' OR (`issued-id` != '' AND `duplex` = 1))) - OR ( `network` IN ( 'stat', 'feed' ) AND `poll` != '' )) + OR ( `network` IN ( 'stat', 'feed' ) AND `poll` != '' )) + $sql_extra AND `self` = 0 AND `blocked` = 0 AND `readonly` = 0 ORDER BY RAND()"); if(! count($contacts)) |