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

This commit is contained in:
Philipp 2022-12-29 20:51:04 +01:00
parent 84fd663a56
commit 73189581b0
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 6 additions and 6 deletions

View file

@ -999,7 +999,7 @@ function twitter_addon_admin(App $a, string &$o)
function twitter_cron(App $a)
{
$last = DI::config()->get('twitter', 'last_poll');
$last = DI::keyValue()->get('twitter_last_poll');
$poll_interval = intval(DI::config()->get('twitter', 'poll_interval'));
if (!$poll_interval) {
@ -1057,7 +1057,7 @@ function twitter_cron(App $a)
Logger::notice('twitter: cron_end');
DI::config()->set('twitter', 'last_poll', time());
DI::keyValue()->set('twitter_last_poll', time());
}
function twitter_expire(App $a)