diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-20 17:24:52 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-20 17:24:52 -0600 |
commit | 99f8c1188ccd1580f58ad4c21cece040ed8e874c (patch) | |
tree | 1c4389da9129a9e7201ae6d4ad00e48c15e55170 /srv/src/mailinglist | |
parent | b4ca8853a9085cb0231f2c4de25a1ec07ef150a0 (diff) |
Add RSS feed generator
Diffstat (limited to 'srv/src/mailinglist')
-rw-r--r-- | srv/src/mailinglist/mailinglist.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/srv/src/mailinglist/mailinglist.go b/srv/src/mailinglist/mailinglist.go index fc6e014..28b44b0 100644 --- a/srv/src/mailinglist/mailinglist.go +++ b/srv/src/mailinglist/mailinglist.go @@ -57,8 +57,9 @@ func (p *Params) SetupCfg(cfg *cfg.Cfg) { cfg.OnInit(func(ctx context.Context) error { var err error + *publicURLStr = strings.TrimSuffix(*publicURLStr, "/") if p.PublicURL, err = url.Parse(*publicURLStr); err != nil { - return fmt.Errorf("parsing -public-url: %w", err) + return fmt.Errorf("parsing -ml-public-url: %w", err) } return nil @@ -67,7 +68,7 @@ func (p *Params) SetupCfg(cfg *cfg.Cfg) { // Annotate implements mctx.Annotator interface. func (p *Params) Annotate(a mctx.Annotations) { - a["publicURL"] = p.PublicURL + a["mlPublicURL"] = p.PublicURL } // New initializes and returns a MailingList instance using the given Params. |