breaking compatibility changes. take context for first arguments.
This commit is contained in:
parent
32e66a3d72
commit
5e84b57bf3
18 changed files with 176 additions and 139 deletions
3
apps.go
3
apps.go
|
@ -1,6 +1,7 @@
|
|||
package mastodon
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
@ -34,7 +35,7 @@ type Application struct {
|
|||
}
|
||||
|
||||
// RegisterApp returns the mastodon application.
|
||||
func RegisterApp(appConfig *AppConfig) (*Application, error) {
|
||||
func RegisterApp(ctx context.Context, appConfig *AppConfig) (*Application, error) {
|
||||
params := url.Values{}
|
||||
params.Set("client_name", appConfig.ClientName)
|
||||
if appConfig.RedirectURIs == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue