Merge branch 'master' of github.com:mattn/go-mastodon
This commit is contained in:
commit
def474a7a5
4 changed files with 63 additions and 10 deletions
|
@ -329,13 +329,13 @@ func run() int {
|
|||
}
|
||||
|
||||
client := mastodon.NewClient(config)
|
||||
if config.AccessToken == "" {
|
||||
return authenticate(client, config, file)
|
||||
}
|
||||
app.Metadata = map[string]interface{}{
|
||||
"client": client,
|
||||
"config": config,
|
||||
}
|
||||
if config.AccessToken == "" {
|
||||
return authenticate(client, config, file)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue