Set User-Agent

This commit is contained in:
Yasuhiro Matsumoto 2019-06-22 01:14:52 +09:00 committed by mattn
parent 8f6192e26b
commit 3268207afe
2 changed files with 9 additions and 1 deletions

View file

@ -370,6 +370,7 @@ func run() int {
}
client := mastodon.NewClient(config)
client.UserAgent = "mstdn"
app.Metadata = map[string]interface{}{
"client": client,
"config": config,