From: Andrew Dolgov Date: Sun, 21 Oct 2012 20:05:20 +0000 (+0400) Subject: syndicated feeds: force sort by last_read for published X-Git-Tag: 1.6.1~74 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=008ebad92815685c7d43125941e16dba1f135946;p=tt-rss.git syndicated feeds: force sort by last_read for published --- diff --git a/classes/handler/public.php b/classes/handler/public.php index e5c543b3..d3c3fc09 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -20,6 +20,9 @@ class Handler_Public extends Handler { $date_sort_field = "date_entered"; } + if ($feed == -2) + $date_sort_field = "last_read"; + $qfh_ret = queryFeedHeadlines($this->link, $feed, $limit, $view_mode, $is_cat, $search, $search_mode, $match_on, "$date_sort_field DESC", $offset, $owner_uid);