From e358bd7a3833f8c5bf9db57d228888f9c5f3692e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Jul 2016 07:56:34 +0000 Subject: inbox: base_url method takes PSGI env hashref instead This is lighter and we can work further towards eliminating our Plack::Request dependency entirely. --- lib/PublicInbox/Feed.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/PublicInbox/Feed.pm') 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 { -- cgit v1.2.3-24-ge0c7