about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-24 09:49:33 +0000
committerEric Wong <e@80x24.org>2023-01-24 10:07:52 +0000
commitff57c4d03ca6fda821fb841507269da4ff4a99b7 (patch)
tree30ffb6de5c855e6b223e7f4b2da083c5ace8d5a5
parentca8cb3b274e017cdc40f69585ecba40fcfa33f8e (diff)
downloadpublic-inbox-ff57c4d03ca6fda821fb841507269da4ff4a99b7.tar.gz
While we can't inexpensively search for git commits based on the
timestamp, coderepos configured for inboxes can still look up
messages based on the inbox URL.
-rw-r--r--lib/PublicInbox/ViewVCS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm
index 51a7bcbc..b238e832 100644
--- a/lib/PublicInbox/ViewVCS.pm
+++ b/lib/PublicInbox/ViewVCS.pm
@@ -208,13 +208,15 @@ sub cmt_finalize {
                 $au =~ s/>/>$x/;
         }
         $_ = ascii_html($_) for ($au, $co);
+        my $ibx_url = ibx_url_for($ctx) // $upfx;
         $au =~ s!(&gt; +)([0-9]{4,}-\S+ \S+)!
                 my ($gt, $t) = ($1, $2);
                 $t =~ tr/ :-//d;
                 qq($gt<a
-href="$upfx?t=$t"
+href="$ibx_url?t=$t"
 title="list contemporary emails">$2</a>)
                 !e;
+
         $ctx->{-title_html} = $s = $ctx->{-linkify}->to_html($s);
         my ($P, $p, $pt) = delete @$ctx{qw(-cmt_P -cmt_p -cmt_pt)};
         $_ = qq(<a href="$upfx$_/s/">).shift(@$p).'</a> '.shift(@$pt) for @$P;