From d1eb85e374c064146c0519d4bf6ca7e936a8014c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 29 Jan 2025 22:32:03 +0100 Subject: Fix unwanted feed description updates (#7269) fix https://github.com/FreshRSS/FreshRSS/discussions/7265 --- app/Models/FeedDAO.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/Models/FeedDAO.php') diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php index d4255cb63..13134788d 100644 --- a/app/Models/FeedDAO.php +++ b/app/Models/FeedDAO.php @@ -374,8 +374,7 @@ SQL; * @return array where the key is the feed ID */ public function listFeedsOrderUpdate(int $defaultCacheDuration = 3600, int $limit = 0): array { - $sql = 'SELECT id, url, kind, category, name, website, `lastUpdate`, `pathEntries`, `httpAuth`, ttl, attributes, `cache_nbEntries`, `cache_nbUnreads` ' - . 'FROM `_feed` ' + $sql = 'SELECT * FROM `_feed` ' . ($defaultCacheDuration < 0 ? '' : 'WHERE ttl >= ' . FreshRSS_Feed::TTL_DEFAULT . ' AND `lastUpdate` < (' . (time() + 60) . '-(CASE WHEN ttl=' . FreshRSS_Feed::TTL_DEFAULT . ' THEN ' . intval($defaultCacheDuration) . ' ELSE ttl END)) ') -- cgit v1.2.3