From a0011ba58e7503a90e643268b63db173e9b1a268 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 26 Jul 2015 17:14:32 +0200 Subject: [PATCH] Discover users who never are contacted. --- include/discover_poco.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/discover_poco.php b/include/discover_poco.php index 481bedcf9..bd3483307 100644 --- a/include/discover_poco.php +++ b/include/discover_poco.php @@ -82,11 +82,11 @@ function discover_poco_run(&$argv, &$argc){ } function discover_users() { + logger("Discover users", LOGGER_DEBUG); // To-Do: Maybe we should check old contact as well. $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 - `last_failure` = '0000-00-00 00:00:00' AND `network` IN ('%s', '%s', '%s') - ORDER BY rand()", + WHERE `last_contact` = '0000-00-00 00:00:00' AND `last_failure` = '0000-00-00 00:00:00' AND + `network` IN ('%s', '%s', '%s') ORDER BY rand()", dbesc(NETWORK_DFRN), dbesc(NETWORK_DIASPORA), dbesc(NETWORK_OSTATUS)); if (!$users)