about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-10-08 08:24:48 +0000
committerEric Wong <e@80x24.org>2022-10-09 16:48:39 +0000
commit5290ed2889d7a62ce3e41e4ff08efaefd2727eda (patch)
tree8f9592335a45203f4cb543a5d31964db13689952 /lib/PublicInbox/Inbox.pm
parentdda0b4ab620e1709c0e25b3d9d70745fe52d60d3 (diff)
downloadpublic-inbox-5290ed2889d7a62ce3e41e4ff08efaefd2727eda.tar.gz
I'm not sure how to best make a UI for one coderepo to many
inboxes/extindices, yet; but at least allow a simple 1:1
mapping, for now.  This ensures /$CODEREPO/$OID/s/ can work
as effectively as /$INBOX/$OID/s/ when looking for emails
associated with a git commit.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 3532bb58..cb98d2ad 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -205,7 +205,8 @@ sub base_url {
                 $url .= '/' if $url !~ m!/\z!;
                 return $url .= $self->{name} . '/';
         }
-        # called from a non-PSGI environment (e.g. NNTP/POP3):
+        # called from a non-PSGI environment or cross-inbox environment
+        # where multiple inboxes can have different domains
         my $url = $self->{url} // return undef;
         $url = $url->[0] // return undef;
         # expand protocol-relative URLs to HTTPS if we're