about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-25 09:40:50 +0000
committerEric Wong <e@80x24.org>2015-08-25 09:40:50 +0000
commitf85f1781634dc03e093a0790a41bb4ae90ea907b (patch)
tree38cd1399add989d089ce702e505efc368581eead /lib/PublicInbox/Feed.pm
parentb17c9c9944a28bc00b83b9d5aa841f514e4abfd6 (diff)
downloadpublic-inbox-f85f1781634dc03e093a0790a41bb4ae90ea907b.tar.gz
This fixes a regression introduced in
commit 72c0f7c71ff28de9755dc4aee8b6ce6f0e4f2ed7
(feed: merge subjects regardless of "[PATCH vN]")
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index a0f901eb..d34978c1 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -345,7 +345,7 @@ sub add_topic {
                 my $mid = $header_obj->header('Message-ID');
                 $mid = mid_compress(mid_clean($mid));
                 $u = $enc_utf8->decode($u);
-                push @$order, [ $mid, $ts, $u, $subj ];
+                push @$order, [ $mid, $ts, $u, $subj, $topic ];
                 return 1;
         }
         0; # old topic, continue going
@@ -357,8 +357,8 @@ sub dump_topics {
         my $dst = '';
         $dst .= "\n[No recent topics]" unless (scalar @$order);
         while (defined(my $info = shift @$order)) {
-                my ($mid, $ts, $u, $subj) = @$info;
-                my $n = delete $subjs->{$subj};
+                my ($mid, $ts, $u, $subj, $topic) = @$info;
+                my $n = delete $subjs->{$topic};
                 $mid = PublicInbox::Hval->new($mid)->as_href;
                 $subj = PublicInbox::Hval->new($subj)->as_html;
                 $u = PublicInbox::Hval->new($u)->as_html;