Update user agent (#5)
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: #5
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-committed-by: jolheiser <john.olheiser@gmail.com>
pull/8/head
jolheiser 2022-03-08 21:01:28 +00:00
parent 514c18ffa2
commit 499bb25f8f
No known key found for this signature in database
GPG Key ID: 454E7F878890995A
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ type SubReddit struct {
}
func (r *RedditConfig) UserAgent() string {
return fmt.Sprintf("%s/%s by /u/%s", r.AppName, r.Version, r.Username)
return fmt.Sprintf("go:%s:%s (by /u/%s)", r.AppName, r.Version, r.Username)
}
func (r *RedditConfig) SubRedditNames() []string {