about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 2f141c44..ffbf5c80 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -297,13 +297,11 @@ sub get_feedopts {
         my $pi_config = $ctx->{pi_config};
         my $inbox = $ctx->{inbox};
         my $obj = $ctx->{-inbox};
-        my $cgi = $ctx->{cgi};
         my %rv = ( description => $obj->description );
 
         $rv{address} = $obj->{address};
         $rv{id_addr} = $obj->{-primary_address};
-        my $url_base;
-        $url_base = $obj->base_url($cgi); # CGI may be undef
+        my $url_base = $obj->base_url($ctx->{env});
         if (my $mid = $ctx->{mid}) { # per-thread feed:
                 $rv{atomurl} = "$url_base$mid/t.atom";
         } else {