about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Config.pm2
-rw-r--r--lib/PublicInbox/Feed.pm6
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index d71bc52e..32bd9ab6 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -57,7 +57,7 @@ sub lookup {
         defined $pfx or return;
 
         my %rv;
-        foreach my $k (qw(mainrepo description address)) {
+        foreach my $k (qw(mainrepo address)) {
                 my $v = $self->{"$pfx.$k"};
                 $rv{$k} = $v if defined $v;
         }
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 4671323c..8cc8b728 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -200,9 +200,13 @@ sub get_feedopts {
         my $listname = $args->{listname};
         my $cgi = $args->{cgi};
         my %rv;
+        if (open my $fh, '<', "$args->{git_dir}/description") {
+                chomp($rv{description} = <$fh>);
+                close $fh;
+        }
 
         if ($pi_config && defined $listname && length $listname) {
-                foreach my $key (qw(description address)) {
+                foreach my $key (qw(address)) {
                         $rv{$key} = $pi_config->get($listname, $key) || "";
                 }
         }