diff options
author | Eric Wong <e@yhbt.net> | 2020-02-15 09:46:33 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-02-16 00:06:21 +0000 |
commit | aa0e67e63e58e0ee4fc3918bde25b9c04d48954a (patch) | |
tree | 789197f35d8601ba3ca79b3aca9a9464b13695aa /lib/PublicInbox/WwwAtomStream.pm | |
parent | 6940f5c8a8436a7a5c846d2079b9d8588872459f (diff) | |
download | public-inbox-aa0e67e63e58e0ee4fc3918bde25b9c04d48954a.tar.gz |
No point in passing something on stack only to stash it into the $ctx which holds most other parameters used for rendering the HTML.
Diffstat (limited to 'lib/PublicInbox/WwwAtomStream.pm')
-rw-r--r-- | lib/PublicInbox/WwwAtomStream.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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{<div\nxmlns="http://www.w3.org/1999/xhtml">} . qq(<pre\nstyle="white-space:pre-wrap">); $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 .= '</pre></div></content></entry>'; } |