1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:15:55 +00:00

add an option to disable DISTINCT on headlines query (unless it's Labels category)

This commit is contained in:
Andrew Dolgov
2021-02-26 09:57:34 +03:00
parent 51142e1bf8
commit f3d4bae32e
3 changed files with 10 additions and 1 deletions

View File

@@ -1621,6 +1621,11 @@ class Feeds extends Handler_Protected {
$distinct_qpart = "DISTINCT"; //fallback
}
// except for Labels category
if (get_pref(Prefs::HEADLINES_NO_DISTINCT) && !($feed == -2 && $cat_view)) {
$distinct_qpart = "";
}
if (!$search && !$skip_first_id_check) {
// if previous topmost article id changed that means our current pagination is no longer valid
$query = "SELECT