diff --git a/CHANGELOG.md b/CHANGELOG.md index 028f01b..0d5e7a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased +## 0.3.5 - 2022-01-19 +### Added +* Added space for contact information to user agent + ## 0.3.4 - 2022-01-19 ### Added * Support for `ETag` and `Last-Modified` headers in feed responses diff --git a/walrss/internal/rss/processor.go b/walrss/internal/rss/processor.go index 2a86546..2518c5e 100644 --- a/walrss/internal/rss/processor.go +++ b/walrss/internal/rss/processor.go @@ -42,7 +42,7 @@ func getUserAgent(st *state.State) string { } else if core.Version != "" { o += "/" + core.Version } - o += " (https://github.com/codemicro/walrss)" + o += " (" + st.Config.Platform.ContactInformation + ", https://github.com/codemicro/walrss)" ua.ua = o }) return ua.ua diff --git a/walrss/internal/state/state.go b/walrss/internal/state/state.go index 227f49e..a0d8183 100644 --- a/walrss/internal/state/state.go +++ b/walrss/internal/state/state.go @@ -34,8 +34,9 @@ type Config struct { ExternalURL string `fig:"externalURL" validate:"required"` } Platform struct { - DisableRegistration bool `fig:"disableRegistration"` - DisableSecureCookies bool `fig:"disableSecureCookies"` + DisableRegistration bool `fig:"disableRegistration"` + DisableSecureCookies bool `fig:"disableSecureCookies"` + ContactInformation string `fig:"contactInformation" validate:"required"` } OIDC struct { Enable bool `fig:"enable"`