summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-26 09:57:34 +0300
committerAndrew Dolgov <[email protected]>2021-02-26 09:57:34 +0300
commitf3d4bae32eae802c717ff36fcaad1f7ee56d2a39 (patch)
tree0cfb57ef192b409e2b6bde4ce59b8faceeca7d02 /classes/feeds.php
parent51142e1bf834432231c8790d1132440600308d24 (diff)
add an option to disable DISTINCT on headlines query (unless it's Labels category)
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 7ea9ca474..5423fc617 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -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