mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
Improved control about the contact/server updates
This commit is contained in:
parent
3c35dbcb5f
commit
077c9ff0c9
9 changed files with 50 additions and 19 deletions
|
@ -2373,6 +2373,10 @@ class GServer
|
|||
*/
|
||||
public static function discover()
|
||||
{
|
||||
if (!DI::config('system', 'discover_servers')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Update the server list
|
||||
self::discoverFederation();
|
||||
|
||||
|
@ -2380,10 +2384,6 @@ class GServer
|
|||
|
||||
$requery_days = intval(DI::config()->get('system', 'poco_requery_days'));
|
||||
|
||||
if ($requery_days == 0) {
|
||||
$requery_days = 7;
|
||||
}
|
||||
|
||||
$last_update = date('c', time() - (60 * 60 * 24 * $requery_days));
|
||||
|
||||
$gservers = DBA::select('gserver', ['id', 'url', 'nurl', 'network', 'poco', 'directory-type'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue