aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAKP <tom@tdpain.net>2023-01-19 18:15:32 +0000
committerAKP <tom@tdpain.net>2023-01-19 18:15:32 +0000
commit1d63955383faf89e53b01895e77c848921de6365 (patch)
treeee6aa7e1157619520457d97ff0d2f88f25bc6e10
parent71a66855bcaed0779c4783300bcea3d27acde39e (diff)
Add space for contact information in user agent
Signed-off-by: AKP <tom@tdpain.net>
-rw-r--r--CHANGELOG.md4
-rw-r--r--walrss/internal/rss/processor.go2
-rw-r--r--walrss/internal/state/state.go5
3 files changed, 8 insertions, 3 deletions
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"`