about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-06 02:05:50 +0000
committerEric Wong <e@80x24.org>2016-07-06 07:12:45 +0000
commitde92f32ad9d7c46db4d9e70fe441576b89aa0f5a (patch)
treec7570f0785bd81640a245d7b0006ce82d5e7d5e6 /lib
parentaf70d4db0d539887d1688befff3f2faf0eeda30d (diff)
downloadpublic-inbox-de92f32ad9d7c46db4d9e70fe441576b89aa0f5a.tar.gz
Oops :x
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index dc6096f1..c230836d 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -870,7 +870,7 @@ sub emit_topics {
                 my ($level, $subj) = @$info;
                 my $n = delete $subjs->{$subj};
                 my ($mid, $ts) = @{delete $latest->{$subj}};
-                $mid = PublicInbox::Hval->new_msgid($mid)->as_href;
+                my $href = PublicInbox::Hval->new_msgid($mid)->as_href;
                 $pfx = indent_for($level);
                 my $nl = $level == $prev ? "\n" : '';
                 if ($nl && $cur) {
@@ -886,7 +886,7 @@ sub emit_topics {
                 }
 
                 $subj = PublicInbox::Hval->new($subj)->as_html;
-                $cur->[1] .= "<a\nhref=\"$mid/T/#u\"><b>$subj</b></a>\n";
+                $cur->[1] .= "<a\nhref=\"$href/T/#u\"><b>$subj</b></a>\n";
                 $ts = fmt_ts($ts);
                 my $attr = " $ts UTC";
 
@@ -895,8 +895,8 @@ sub emit_topics {
                 $n = $n == 1 ? '' : " ($n+ messages)";
 
                 if ($level == 0 || $attr ne $prev_attr) {
-                        my $mbox = qq(<a\nhref="$mid/t.mbox.gz">mbox.gz</a>);
-                        my $atom = qq(<a\nhref="$mid/t.atom">Atom</a>);
+                        my $mbox = qq(<a\nhref="$href/t.mbox.gz">mbox.gz</a>);
+                        my $atom = qq(<a\nhref="$href/t.atom">Atom</a>);
                         $pfx .= INDENT if $level > 0;
                         $cur->[1] .= $pfx . $attr . $n . " - $mbox / $atom\n";
                         $prev_attr = $attr;