about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-03 00:59:07 +0000
committerEric Wong <e@80x24.org>2016-07-03 00:59:28 +0000
commit6ef495caacffe26bfc131fa1995373c42316def0 (patch)
treefc8f3adce2985b547aef945230aa1cc7c8333d4f
parentc1630b7dc4ef631250f77710b1c6cffea5e49b44 (diff)
downloadpublic-inbox-6ef495caacffe26bfc131fa1995373c42316def0.tar.gz
There is no point for diverting readers' attention with
an unnecessary link, here.
-rw-r--r--lib/PublicInbox/View.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 1527959d..e8395ae9 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -219,6 +219,7 @@ sub _th_index_lite {
         my $this = $map->[1];
         $this =~ s!\n\z!</b>\n!s;
         $this =~ s!<a\nhref.*</a> !!s; # no point in duplicating subject
+        $this =~ s!<a\nhref=[^>]+>([^<]+)</a>!$1!s; # no point linking to self
         $rv .= "<b>@ $this";
         my $node = $map->[2];
         if (my $child = $node->child) {