diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-10-06 15:38:58 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2013-10-06 15:38:58 +0400 |
| commit | 924a89ebf33b5ce82a76aa4f9b4726cb60282528 (patch) | |
| tree | e6bf3da30e4b0f6709aef6a1e441b87fcdf73388 | |
| parent | 0ee126ee8faa40cb876f8b8a72c006ee89c2e17c (diff) | |
getFeedArticles: use date_entered for fresh feed same as queryFeedHeadlines (closes #780)
| -rw-r--r-- | include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php index c6ee6dfbd..3ac413667 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1421,9 +1421,9 @@ $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; |