From aa0e67e63e58e0ee4fc3918bde25b9c04d48954a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 15 Feb 2020 09:46:33 +0000 Subject: view: remove mhref arg from multipart_text_as_html No point in passing something on stack only to stash it into the $ctx which holds most other parameters used for rendering the HTML. --- lib/PublicInbox/WwwAtomStream.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/WwwAtomStream.pm') diff --git a/lib/PublicInbox/WwwAtomStream.pm b/lib/PublicInbox/WwwAtomStream.pm index ea871fe5..658934a2 100644 --- a/lib/PublicInbox/WwwAtomStream.pm +++ b/lib/PublicInbox/WwwAtomStream.pm @@ -142,7 +142,8 @@ sub feed_entry { qq{} . qq(); $ctx->{obuf} = \$s; - PublicInbox::View::multipart_text_as_html($mime, $href, $ctx); + $ctx->{mhref} = $href; + PublicInbox::View::multipart_text_as_html($mime, $ctx); delete $ctx->{obuf}; $s .= ''; } -- cgit v1.2.3-24-ge0c7