about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 019d50a4..2a9316b1 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -23,16 +23,14 @@ our @EXT_URL = (
 
 sub ext_msg {
         my ($ctx) = @_;
-        my $pi_config = $ctx->{pi_config};
         my $cur = $ctx->{-inbox};
         my $mid = $ctx->{mid};
-        my $env = $ctx->{env};
 
         eval { require PublicInbox::Search };
         my $have_xap = $@ ? 0 : 1;
         my (@nox, @ibx, @found);
 
-        $pi_config->each_inbox(sub {
+        $ctx->{www}->{pi_config}->each_inbox(sub {
                 my ($other) = @_;
                 return if $other->{name} eq $cur->{name} || !$other->base_url;