about summary refs log tree commit homepage
path: root/lib/PublicInbox/MailDiff.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-28 17:36:59 +0000
committerEric Wong <e@80x24.org>2023-11-29 02:13:30 +0000
commit1aaa1b18a14ab69a3dbd272ee9b20eef350310ae (patch)
treef7420fb8bf6c28734ef1cf16cd66a21538ce0c32 /lib/PublicInbox/MailDiff.pm
parent4013b7577971a67f672c0925d84b01dd5ef5d7f5 (diff)
downloadpublic-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.pm7
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 `&#8226;' 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);