From 5f068b07f90692e96d84446178d7c7f0e471defd Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 19 May 2019 03:12:22 +0200 Subject: [PATCH] some improvements --- src/Model/GContact.php | 2 +- src/Module/RandomProfile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/GContact.php b/src/Model/GContact.php index c259467a86..8c64712812 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -1071,7 +1071,7 @@ class GContact $r = DBA::selectFirst('gcontact', ['url'], [ '`network` = ? AND `last_contact` >= `last_failure` - AND `updated` > ?', + AND `updated` > ?', Protocol::DFRN, DateTimeFormat::utc('now - 1 month'), ], ['order' => ['RAND()']]); diff --git a/src/Module/RandomProfile.php b/src/Module/RandomProfile.php index 325cc1e659..3ecaa54b76 100644 --- a/src/Module/RandomProfile.php +++ b/src/Module/RandomProfile.php @@ -7,7 +7,7 @@ use Friendica\Model\Contact; 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 {