_order_to_override_query: fix custom sort plugins overriding each other

masterz
Andrew Dolgov 5 months ago
parent 0578bf8025
commit 3de09b44f2
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
  1. 3
      classes/feeds.php

@ -2458,6 +2458,9 @@ class Feeds extends Handler_Protected {
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_HEADLINES_CUSTOM_SORT_OVERRIDE,
function ($result) use (&$query, &$skip_first_id) {
list ($query, $skip_first_id) = $result;
// run until first hard match
return !empty($query);
},
$order);

Loading…
Cancel
Save