From f0d4f2762d2b74eeadf2fb64ff83039b5cc16c26 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 3 Dec 2023 19:52:02 +0100 Subject: Rework keepmax (#5905) * Rework keepmax fix https://github.com/FreshRSS/FreshRSS/issues/5702 fix https://github.com/FreshRSS/FreshRSS/issues/5870 * More WIP * Minor progress * Progress * Beta * Improved debug message * Revert noCommit * Fix variable reset * Remove debug syslogs --- p/api/greader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'p/api/greader.php') diff --git a/p/api/greader.php b/p/api/greader.php index 67d82cf4d..91a7b5d13 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -327,7 +327,10 @@ final class GReaderAPI { $importService = new FreshRSS_Import_Service($user); $importService->importOpml($opml); if ($importService->lastStatus()) { - FreshRSS_feed_Controller::actualizeFeed(0, '', true); + [, , $nb_new_articles] = FreshRSS_feed_Controller::actualizeFeeds(); + if ($nb_new_articles > 0) { + FreshRSS_feed_Controller::commitNewEntries(); + } invalidateHttpCache($user); exit('OK'); } else { -- cgit v1.2.3