some improvements
This commit is contained in:
parent
8bb85b1da7
commit
5f068b07f9
2 changed files with 2 additions and 2 deletions
|
@ -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()']]);
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue