From 5f3cef806f38dfd7f44d203923051f2ce5f4499a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 2 Sep 2015 02:37:18 +0000 Subject: view: optional flat view for recent messages For still-active threads, it will likely be easier to follow them chronologically, especially if we have links to parent messages. --- lib/PublicInbox/WWW.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/PublicInbox/WWW.pm') diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index d666a1b7..9ae7f7be 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -46,6 +46,9 @@ sub run { invalid_list_mid(\%ctx, $1, $2) || get_thread_mbox(\%ctx, $sfx); } elsif ($path_info =~ m!$LISTNAME_RE/$MID_RE/t\.atom\z!o) { invalid_list_mid(\%ctx, $1, $2) || get_thread_atom(\%ctx); + } elsif ($path_info =~ m!$LISTNAME_RE/$MID_RE/T/\z!o) { + $ctx{flat} = 1; + invalid_list_mid(\%ctx, $1, $2) || get_thread(\%ctx); # single-message pages } elsif ($path_info =~ m!$LISTNAME_RE/$MID_RE/\z!o) { -- cgit v1.2.3-24-ge0c7