fix default sorting not taking score into account, remove unused SORT_HEADLINES_BY_FEED_DATE remnant
This commit is contained in:
parent
1fcb6baa38
commit
686852d548
|
@ -2422,13 +2422,7 @@
|
||||||
$query_strategy_part = "true";
|
$query_strategy_part = "true";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, "SORT_HEADLINES_BY_FEED_DATE", $owner_uid)) {
|
$order_by = "score DESC, date_entered DESC, updated DESC";
|
||||||
$date_sort_field = "updated";
|
|
||||||
} else {
|
|
||||||
$date_sort_field = "date_entered";
|
|
||||||
}
|
|
||||||
|
|
||||||
$order_by = "$date_sort_field DESC, updated DESC";
|
|
||||||
|
|
||||||
if ($view_mode == "unread_first") {
|
if ($view_mode == "unread_first") {
|
||||||
$order_by = "unread DESC, $order_by";
|
$order_by = "unread DESC, $order_by";
|
||||||
|
|
Loading…
Reference in New Issue