Explorar o código

Fix unwanted feed description updates (#7269)

fix https://github.com/FreshRSS/FreshRSS/discussions/7265
Alexandre Alapetite hai 1 ano
pai
achega
d1eb85e374
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      app/Models/FeedDAO.php

+ 1 - 2
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)) ')