Replace addon "last" config entries with key-value entries

This commit is contained in:
Philipp 2022-12-29 20:51:04 +01:00
parent b227d65dfc
commit 1ed67fba3d
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 12 additions and 5 deletions

View file

@ -2145,7 +2145,7 @@ class GServer
*/
private static function discoverFederation()
{
$last = DI::config()->get('poco', 'last_federation_discovery');
$last = DI::keyValue()->get('poco_last_federation_discovery');
if ($last) {
$next = $last + (24 * 60 * 60);
@ -2189,7 +2189,7 @@ class GServer
}
}
DI::config()->set('poco', 'last_federation_discovery', time());
DI::keyValue()->set('poco_last_federation_discovery', time());
}
/**