summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-03 13:48:50 +0400
committerAndrew Dolgov <[email protected]>2013-04-03 13:48:50 +0400
commitcfd34086c12334ae79c28a42ee9a33d75eae841c (patch)
treeca56954d440eff57f7bbda8fb04cad6d07664794 /include
parent737ede9cbca47079862d1644c0c6f63dda5fd70a (diff)
fix catchup not working on Fresh articles
Diffstat (limited to 'include')
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index aa1f0808b..c06208d14 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1073,9 +1073,9 @@
$intl = get_pref($link, "FRESH_ARTICLE_MAX_AGE");
if (DB_TYPE == "pgsql") {
- $match_part = "updated > NOW() - INTERVAL '$intl hour' ";
+ $match_part = "date_entered > NOW() - INTERVAL '$intl hour' ";
} else {
- $match_part = "updated > DATE_SUB(NOW(),
+ $match_part = "date_entered > DATE_SUB(NOW(),
INTERVAL $intl HOUR) ";
}
@@ -1083,7 +1083,7 @@
SET unread = false, last_read = NOW() WHERE ref_id IN
(SELECT id FROM
(SELECT id FROM ttrss_entries, ttrss_user_entries WHERE ref_id = id
- AND owner_uid = $owner_uid AND unread = true AND feed_id = $feed AND $date_qpart AND $match_part) as tmp)");
+ AND owner_uid = $owner_uid AND unread = true AND $date_qpart AND $match_part) as tmp)");
}
if ($feed == -4) {