diff options
author | Eric Wong <e@80x24.org> | 2016-05-02 04:22:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-02 17:57:07 +0000 |
commit | a0acd80571373595838617034540e1503f744737 (patch) | |
tree | ac4bd07b8541c243d7ebf27f94c448b7b7c479be /lib/PublicInbox/NNTPD.pm | |
parent | 16d1d110117a2521fcc3304541c937385febd66b (diff) | |
download | public-inbox-a0acd80571373595838617034540e1503f744737.tar.gz |
For readers using NNTP, we should do our best to advertise the clonable HTTP/HTTPS URLs and the message permalink URL for ease-of-referencing messages, since we don't want the NNTP server and it's sequential article numbers to be relied on.
Diffstat (limited to 'lib/PublicInbox/NNTPD.pm')
-rw-r--r-- | lib/PublicInbox/NNTPD.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index 85109ea7..2c84fb30 100644 --- a/lib/PublicInbox/NNTPD.pm +++ b/lib/PublicInbox/NNTPD.pm @@ -30,11 +30,12 @@ sub refresh_groups () { my $git_dir = $pi_config->{$k}; my $addr = $pi_config->{"publicinbox.$g.address"}; my $ngname = $pi_config->{"publicinbox.$g.newsgroup"}; + my $url = $pi_config->{"publicinbox.$g.url"}; if (defined $ngname) { next if ($ngname eq ''); # disabled $g = $ngname; } - my $ng = PublicInbox::NewsGroup->new($g, $git_dir, $addr); + my $ng = PublicInbox::NewsGroup->new($g, $git_dir, $addr, $url); my $old_ng = $self->{groups}->{$g}; # Reuse the old one if possible since it can hold |