about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 39b04174..33f71990 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -881,8 +881,7 @@ sub strict_loose_note ($) {
 sub thread_results {
         my ($ctx, $msgs) = @_;
         require PublicInbox::SearchThread;
-        my $ibx = $ctx->{-inbox};
-        my $rootset = PublicInbox::SearchThread::thread($msgs, *sort_ds, $ibx);
+        my $rootset = PublicInbox::SearchThread::thread($msgs, \&sort_ds, $ctx);
 
         # FIXME: `tid' is broken on --reindex, so that needs to be fixed
         # and preserved in the future.  This bug is hidden by `sid' matches