diff options
author | Eric Wong <e@80x24.org> | 2016-04-13 01:35:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-13 01:35:56 +0000 |
commit | 18a511c17dd9c4b5fad3a1e837bb8d23216bf758 (patch) | |
tree | e4e293a9a66eadb54bbd4cebb5d33140eed5dd88 /lib/PublicInbox/View.pm | |
parent | ae43d0cf268512ce3dff6c8af3e4f686b2a011e2 (diff) | |
download | public-inbox-18a511c17dd9c4b5fad3a1e837bb8d23216bf758.tar.gz |
Oops. While we're at it, simplify the calls to do threading slightly by reducing the places where we touch Mail::Thread globals. Fixes: 56164afc2034 (view: allow topics to be "bumped" by new replies)
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index f58099d4..ebe82b49 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -726,7 +726,7 @@ sub msg_timestamp { } sub thread_results { - my ($msgs, $nosubject) = @_; + my ($msgs, $nosubject, $nosort) = @_; require PublicInbox::Thread; my $th = PublicInbox::Thread->new(@$msgs); @@ -740,7 +740,7 @@ sub thread_results { # Keep ghosts with only a single direct child: $Mail::Thread::noprune = 1; $th->thread; - $th->order(*sort_ts); + $th->order(*sort_ts) unless $nosort; $th } |