about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiQuery.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiQuery.pm')
-rw-r--r--lib/PublicInbox/LeiQuery.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm
index a7938e8b..7713902b 100644
--- a/lib/PublicInbox/LeiQuery.pm
+++ b/lib/PublicInbox/LeiQuery.pm
@@ -24,7 +24,9 @@ sub lei_q {
         # --external is enabled by default, but allow --no-external
         if ($opt->{external} //= 1) {
                 my $cb = $lxs->can('prepare_external');
-                $self->_externals_each($cb, $lxs);
+                my $ne = $self->_externals_each($cb, $lxs);
+                $opt->{remote} //= $ne == $lxs->remotes;
+                delete($lxs->{remotes}) if !$opt->{remote};
         }
         my $xj = $lxs->concurrency($opt);
         my $ovv = PublicInbox::LeiOverview->new($self) or return;