Update user agent
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/5/head
jolheiser 2022-03-08 21:00:04 +00:00
parent 514c18ffa2
commit 096768d079
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 { 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 { func (r *RedditConfig) SubRedditNames() []string {