syndicated feeds: force sort by last_read for published

master
Andrew Dolgov 12 years ago
parent 8c25264dfd
commit 008ebad928

@ -20,6 +20,9 @@ class Handler_Public extends Handler {
$date_sort_field = "date_entered"; $date_sort_field = "date_entered";
} }
if ($feed == -2)
$date_sort_field = "last_read";
$qfh_ret = queryFeedHeadlines($this->link, $feed, $qfh_ret = queryFeedHeadlines($this->link, $feed,
$limit, $view_mode, $is_cat, $search, $search_mode, $limit, $view_mode, $is_cat, $search, $search_mode,
$match_on, "$date_sort_field DESC", $offset, $owner_uid); $match_on, "$date_sort_field DESC", $offset, $owner_uid);

Loading…
Cancel
Save