]> git.mxchange.org Git - friendica.git/commitdiff
Discover users who never are contacted.
authorMichael Vogel <icarus@dabo.de>
Sun, 26 Jul 2015 15:14:32 +0000 (17:14 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 26 Jul 2015 15:14:32 +0000 (17:14 +0200)
include/discover_poco.php

index 481bedcf924d9a3a6d2c202b250293072800a784..bd3483307db75672db78c1ff3430f87bf0754444 100644 (file)
@@ -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)