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
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());
}
/**