some improvements

This commit is contained in:
Philipp Holzer
2019-05-19 03:12:22 +02:00
parent 8bb85b1da7
commit 5f068b07f9
2 changed files with 2 additions and 2 deletions

View File

@@ -1071,7 +1071,7 @@ class GContact
$r = DBA::selectFirst('gcontact', ['url'], [ $r = DBA::selectFirst('gcontact', ['url'], [
'`network` = ? '`network` = ?
AND `last_contact` >= `last_failure` AND `last_contact` >= `last_failure`
AND `updated` > ?', AND `updated` > ?',
Protocol::DFRN, Protocol::DFRN,
DateTimeFormat::utc('now - 1 month'), DateTimeFormat::utc('now - 1 month'),
], ['order' => ['RAND()']]); ], ['order' => ['RAND()']]);

View File

@@ -7,7 +7,7 @@ use Friendica\Model\Contact;
use Friendica\Model\GContact; use Friendica\Model\GContact;
/** /**
* Redirects to a random profile of this node * Redirects to a random Friendica profile this node knows about
*/ */
class RandomProfile extends BaseModule class RandomProfile extends BaseModule
{ {