]> git.wh0rd.org Git - tt-rss.git/commitdiff
getFeedArticles: use date_entered for fresh feed same as queryFeedHeadlines (closes...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 6 Oct 2013 11:38:58 +0000 (15:38 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 6 Oct 2013 11:38:58 +0000 (15:38 +0400)
include/functions.php

index c6ee6dfbdbeaa84134db28b0876ad0c230ef2dd7..3ac413667d61a299837a7b8d0cd89715a3dd0739 100644 (file)
                        $intl = get_pref("FRESH_ARTICLE_MAX_AGE", $owner_uid);
 
                        if (DB_TYPE == "pgsql") {
-                               $match_part .= " AND updated > NOW() - INTERVAL '$intl hour' ";
+                               $match_part .= " AND date_entered > NOW() - INTERVAL '$intl hour' ";
                        } else {
-                               $match_part .= " AND updated > DATE_SUB(NOW(), INTERVAL $intl HOUR) ";
+                               $match_part .= " AND date_entered > DATE_SUB(NOW(), INTERVAL $intl HOUR) ";
                        }
 
                        $need_entries = true;