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-27 04:34:01 +0000
committerEric Wong <e@80x24.org>2015-08-27 06:04:51 +0000
commit9a2931759c3dcbd879728b49151aa3f8a641b506 (patch)
tree001d6823d7d9d143d3494ad8376d624ea1ca6afc /lib/PublicInbox/Feed.pm
parente3c3cde22f57bf16bc47c50d8f9ac02416975cd3 (diff)
downloadpublic-inbox-9a2931759c3dcbd879728b49151aa3f8a641b506.tar.gz
These URLs are preferable in case somebody decides to get cute and
use a suffix we would've used to prevent others from linking to
their message.  The common /m/$MESSAGE_ID/ URLs are now 4 characters
shorter so may fit better on terminals.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index d34978c1..9e567476 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -273,7 +273,7 @@ sub add_to_feed {
         my $mid = $header_obj->header('Message-ID');
         defined $mid or return 0;
         $mid = PublicInbox::Hval->new_msgid($mid);
-        my $href = $mid->as_href . '.html';
+        my $href = $mid->as_href . '/';
         my $content = PublicInbox::View->feed_entry($mime, $fullurl . $href);
         defined($content) or return 0;
         $mime = undef;
@@ -362,7 +362,7 @@ sub dump_topics {
                 $mid = PublicInbox::Hval->new($mid)->as_href;
                 $subj = PublicInbox::Hval->new($subj)->as_html;
                 $u = PublicInbox::Hval->new($u)->as_html;
-                $dst .= "\n<a\nhref=\"t/$mid.html#u\"><b>$subj</b></a>\n- ";
+                $dst .= "\n<a\nhref=\"t/$mid/#u\"><b>$subj</b></a>\n- ";
                 $ts = POSIX::strftime('%Y-%m-%d %H:%M', gmtime($ts));
                 if ($n == 1) {
                         $dst .= "created by $u @ $ts UTC\n"