diff options
author | Eric Wong <e@80x24.org> | 2016-07-02 07:56:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-02 07:57:27 +0000 |
commit | e358bd7a3833f8c5bf9db57d228888f9c5f3692e (patch) | |
tree | 4822b8d06e92f78ea3861d83f8c999015ccae397 /lib/PublicInbox/Feed.pm | |
parent | 0f9091f381191484f1a5ed5189d23cbfa88de6fc (diff) | |
download | public-inbox-e358bd7a3833f8c5bf9db57d228888f9c5f3692e.tar.gz |
This is lighter and we can work further towards eliminating our Plack::Request dependency entirely.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 4 |
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 { |