diff options
author | Eric Wong <e@80x24.org> | 2015-08-24 02:25:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-24 09:29:00 +0000 |
commit | 71040e5ff8a68eb0cfaf20c273e227cdceb9dc23 (patch) | |
tree | 6dcdeff527049c7c98fa7ec347b0afb26eae41db /lib/PublicInbox/WWW.pm | |
parent | 94f2f2bd84a3569912cc27b42c21b67917333f58 (diff) | |
download | public-inbox-71040e5ff8a68eb0cfaf20c273e227cdceb9dc23.tar.gz |
Using hash means we no longer have to document and remember what every field does. The original array form was insane premature optimization and crazy. Who wrote that? Oh wait, I was on drugs :<
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 86c64fb6..eeae3d32 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -176,9 +176,9 @@ sub get_mid_html { my $foot = footer($ctx); require Email::MIME; my $mime = Email::MIME->new($x); - my $srch = searcher($ctx); + searcher($ctx); [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], - [ PublicInbox::View->msg_html($mime, $pfx, $foot, $srch) ] ]; + [ PublicInbox::View::msg_html($ctx, $mime, $pfx, $foot) ] ]; } # /$LISTNAME/f/$MESSAGE_ID.html -> HTML content (fullquotes) @@ -190,9 +190,9 @@ sub get_full_html { my $foot = footer($ctx); require Email::MIME; my $mime = Email::MIME->new($x); - my $srch = searcher($ctx); + searcher($ctx); [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], - [ PublicInbox::View->msg_html($mime, undef, $foot, $srch)] ]; + [ PublicInbox::View::msg_html($ctx, $mime, undef, $foot)] ]; } # /$LISTNAME/t/$MESSAGE_ID.html |