Discover users who never are contacted.
This commit is contained in:
parent
e5bf7bae7b
commit
a0011ba58e
1 changed files with 3 additions and 3 deletions
|
@ -82,11 +82,11 @@ function discover_poco_run(&$argv, &$argc){
|
||||||
}
|
}
|
||||||
|
|
||||||
function discover_users() {
|
function discover_users() {
|
||||||
|
logger("Discover users", LOGGER_DEBUG);
|
||||||
// To-Do: Maybe we should check old contact as well.
|
// To-Do: Maybe we should check old contact as well.
|
||||||
$users = q("SELECT `url`, `created`, `updated`, `last_failure`, `last_contact`, `server_url` FROM `gcontact`
|
$users = q("SELECT `url`, `created`, `updated`, `last_failure`, `last_contact`, `server_url` FROM `gcontact`
|
||||||
WHERE `updated` = '0000-00-00 00:00:00' AND `last_contact` = '0000-00-00 00:00:00' AND
|
WHERE `last_contact` = '0000-00-00 00:00:00' AND `last_failure` = '0000-00-00 00:00:00' AND
|
||||||
`last_failure` = '0000-00-00 00:00:00' AND `network` IN ('%s', '%s', '%s')
|
`network` IN ('%s', '%s', '%s') ORDER BY rand()",
|
||||||
ORDER BY rand()",
|
|
||||||
dbesc(NETWORK_DFRN), dbesc(NETWORK_DIASPORA), dbesc(NETWORK_OSTATUS));
|
dbesc(NETWORK_DFRN), dbesc(NETWORK_DIASPORA), dbesc(NETWORK_OSTATUS));
|
||||||
|
|
||||||
if (!$users)
|
if (!$users)
|
||||||
|
|
Loading…
Reference in a new issue