From 008ebad92815685c7d43125941e16dba1f135946 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Oct 2012 00:05:20 +0400 Subject: [PATCH] syndicated feeds: force sort by last_read for published --- classes/handler/public.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5