aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app
diff options
context:
space:
mode:
authorAlexandre Alapetite <alexandre@alapetite.fr>2025-01-29 22:32:03 +0100
committerGitHub <noreply@github.com>2025-01-29 22:32:03 +0100
commitd1eb85e374c064146c0519d4bf6ca7e936a8014c (patch)
tree877bef7ce493d85ef47f1e8ba84a3875fab1db3e /app
parent0e0dde1f89b25d3bb7f1b7857c9e14ff1e5d692f (diff)
downloadfreshrss-d1eb85e374c064146c0519d4bf6ca7e936a8014c.tar.gz
freshrss-d1eb85e374c064146c0519d4bf6ca7e936a8014c.zip
Fix unwanted feed description updates (#7269)
fix https://github.com/FreshRSS/FreshRSS/discussions/7265
Diffstat (limited to 'app')
-rw-r--r--app/Models/FeedDAO.php3
1 files changed, 1 insertions, 2 deletions
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<int,FreshRSS_Feed> 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)) ')