]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
config: use description file for gitweb
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 4671323cc1bd74b48a07c905b9065d889d28bcc9..8cc8b728887446aff0cb622352563ef1eb66ad7a 100644 (file)
@@ -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) || "";
                }
        }