diff options
author | Eric Wong <e@80x24.org> | 2023-11-28 17:36:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-29 02:13:30 +0000 |
commit | 1aaa1b18a14ab69a3dbd272ee9b20eef350310ae (patch) | |
tree | f7420fb8bf6c28734ef1cf16cd66a21538ce0c32 /lib/PublicInbox/MailDiff.pm | |
parent | 4013b7577971a67f672c0925d84b01dd5ef5d7f5 (diff) | |
download | public-inbox-1aaa1b18a14ab69a3dbd272ee9b20eef350310ae.tar.gz |
We need to load the proper package and fully-qualify the sub call since we shouldn't load Hval in lei. Some users use this feature even if its broken, oh well :<
Diffstat (limited to 'lib/PublicInbox/MailDiff.pm')
-rw-r--r-- | lib/PublicInbox/MailDiff.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/PublicInbox/MailDiff.pm b/lib/PublicInbox/MailDiff.pm index b1c12d6d..98284b23 100644 --- a/lib/PublicInbox/MailDiff.pm +++ b/lib/PublicInbox/MailDiff.pm @@ -47,6 +47,8 @@ sub prep_a ($$) { dump_eml($self, "$self->{tmp}/a", $eml); } +# WWW-specific stuff below (TODO: split out for non-lei) + sub next_smsg ($) { my ($self) = @_; my $ctx = $self->{ctx}; @@ -62,9 +64,12 @@ sub next_smsg ($) { sub emit_msg_diff { my ($bref, $self) = @_; # bref is `git diff' output + require PublicInbox::Hval; + # will be escaped to `•' in HTML $self->{ctx}->{ibx}->{obfuscate} and - obfuscate_addrs($self->{ctx}->{ibx}, $$bref, "\x{2022}"); + PublicInbox::Hval::obfuscate_addrs($self->{ctx}->{ibx}, + $$bref, "\x{2022}"); print { $self->{ctx}->{zfh} } '</pre><hr><pre>' if $self->{nr} > 1; flush_diff($self->{ctx}, $bref); next_smsg($self); |