_order_to_override_query: fix custom sort plugins overriding each other

This commit is contained in:
Andrew Dolgov 2023-05-06 14:07:10 +03:00
parent 0578bf8025
commit 3de09b44f2
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 3 additions and 0 deletions

View File

@ -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);