]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
rename most instances of "list" to "inbox"
[public-inbox.git] / lib / PublicInbox / Feed.pm
index d433726fb8d624506fa423bb3b2fd6f589566fa7..0d3bc81dfc410e42931f8d0b7c75a53387fda68c 100644 (file)
@@ -260,7 +260,7 @@ sub each_recent_blob {
 sub get_feedopts {
        my ($ctx) = @_;
        my $pi_config = $ctx->{pi_config};
-       my $listname = $ctx->{listname};
+       my $inbox = $ctx->{inbox};
        my $cgi = $ctx->{cgi};
        my %rv;
        if (open my $fh, '<', "$ctx->{git_dir}/description") {
@@ -269,8 +269,8 @@ sub get_feedopts {
                $rv{description} = '($GIT_DIR/description missing)';
        }
 
-       if ($pi_config && defined $listname && $listname ne '') {
-               my $addr = $pi_config->get($listname, 'address') || "";
+       if ($pi_config && defined $inbox && $inbox ne '') {
+               my $addr = $pi_config->get($inbox, 'address') || "";
                $rv{address} = $addr;
                $addr = $addr->[0] if ref($addr);
                $rv{id_addr} = $addr;
@@ -279,7 +279,7 @@ sub get_feedopts {
 
        my $url_base;
        if ($cgi) {
-               $url_base = $cgi->base->as_string . $listname;
+               $url_base = $cgi->base->as_string . $inbox;
                if (my $mid = $ctx->{mid}) { # per-thread feed:
                        $rv{atomurl} = "$url_base/$mid/t.atom";
                } else {