Only suggest friendica contacts that where recently active
This commit is contained in:
parent
098ccd09fa
commit
016f9cb8c3
2 changed files with 7 additions and 2 deletions
|
@ -1211,7 +1211,7 @@ function poco_discover($complete = false) {
|
|||
$last_update = date("c", time() - (60 * 60 * 6)); // 24
|
||||
$last_update = date("c", time() - (60 * 60 * 24)); // 24
|
||||
|
||||
$r = q("SELECT `poco`, `nurl`, `url`, `network` FROM `gserver` WHERE `last_contact` > `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()", dbesc($last_update));
|
||||
$r = q("SELECT `poco`, `nurl`, `url`, `network` FROM `gserver` WHERE `last_contact` >= `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()", dbesc($last_update));
|
||||
if ($r)
|
||||
foreach ($r AS $server) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue