Merge pull request #38 from tSU-RooT/fix-first-use-err
fix client is not set when first use
This commit is contained in:
commit
e2f158f83c
|
@ -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…
Reference in New Issue
Block a user