]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
work in progress js_uploader plugin, turn java uploader into plugin - not done yet
[friendica.git] / include / poller.php
index fc45ff9c3e16865086a4ff8c4f67318e48cf1fe2..024b9fbcd38c0c6144c8a4751224e7e0f286f003 100644 (file)
        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` = 'stat' 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))