diff --git a/appinfo/info.xml b/appinfo/info.xml index 954ae116..607f1f1a 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -9,7 +9,7 @@ Nextcloud announcements Nextcloud announcements brings the latest news of Nextcloud into your notifications Nextcloud announcements brings the latest news of Nextcloud into your notifications - 4.0.0-dev.0 + 4.0.0 agpl Joas Schilling NextcloudAnnouncements diff --git a/lib/Cron/Crawler.php b/lib/Cron/Crawler.php index 0d24baaf..ee6e84c5 100644 --- a/lib/Cron/Crawler.php +++ b/lib/Cron/Crawler.php @@ -69,7 +69,7 @@ protected function run(mixed $argument): void { $rssPubDate = (string)$rss->channel->pubDate; $lastPubDate = $this->config->getAppValue($this->appName, 'pub_date', 'now'); - if ($lastPubDate === 'now1') { + if ($lastPubDate === 'now') { // First call, don't spam the user with old stuff... $this->config->setAppValue($this->appName, 'pub_date', $rssPubDate); return; @@ -105,7 +105,7 @@ protected function run(mixed $argument): void { $this->notificationManager->notify($notification); } - $this->config->getAppValue($this->appName, $id, 'published'); + $this->config->setAppValue($this->appName, $id, 'published'); } $this->config->setAppValue($this->appName, 'pub_date', $rssPubDate); diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 17be5e37..03328398 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,21 +1,15 @@ - + - + - - getBody()]]> - - - -