diff options
Diffstat (limited to 'internal/transport')
-rw-r--r-- | internal/transport/controller.go | 2 | ||||
-rw-r--r-- | internal/transport/deliver.go | 5 | ||||
-rw-r--r-- | internal/transport/dereference.go | 5 | ||||
-rw-r--r-- | internal/transport/derefinstance.go | 5 | ||||
-rw-r--r-- | internal/transport/derefmedia.go | 5 | ||||
-rw-r--r-- | internal/transport/finger.go | 5 | ||||
-rw-r--r-- | internal/transport/transport.go | 2 |
7 files changed, 17 insertions, 12 deletions
diff --git a/internal/transport/controller.go b/internal/transport/controller.go index 1f46494dc..b16f5a1b0 100644 --- a/internal/transport/controller.go +++ b/internal/transport/controller.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by diff --git a/internal/transport/deliver.go b/internal/transport/deliver.go index 5a522874a..80e84802c 100644 --- a/internal/transport/deliver.go +++ b/internal/transport/deliver.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -20,8 +20,9 @@ package transport import ( "context" - "github.com/sirupsen/logrus" "net/url" + + "github.com/sirupsen/logrus" ) func (t *transport) BatchDeliver(ctx context.Context, b []byte, recipients []*url.URL) error { diff --git a/internal/transport/dereference.go b/internal/transport/dereference.go index 477440a77..5ef6db9a7 100644 --- a/internal/transport/dereference.go +++ b/internal/transport/dereference.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -20,8 +20,9 @@ package transport import ( "context" - "github.com/sirupsen/logrus" "net/url" + + "github.com/sirupsen/logrus" ) func (t *transport) Dereference(ctx context.Context, iri *url.URL) ([]byte, error) { diff --git a/internal/transport/derefinstance.go b/internal/transport/derefinstance.go index a2610f54a..c64dced0f 100644 --- a/internal/transport/derefinstance.go +++ b/internal/transport/derefinstance.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -23,12 +23,13 @@ import ( "encoding/json" "errors" "fmt" - "github.com/sirupsen/logrus" "io/ioutil" "net/http" "net/url" "strings" + "github.com/sirupsen/logrus" + apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/id" diff --git a/internal/transport/derefmedia.go b/internal/transport/derefmedia.go index e1b6df15d..8a6aa4e24 100644 --- a/internal/transport/derefmedia.go +++ b/internal/transport/derefmedia.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -21,10 +21,11 @@ package transport import ( "context" "fmt" - "github.com/sirupsen/logrus" "io/ioutil" "net/http" "net/url" + + "github.com/sirupsen/logrus" ) func (t *transport) DereferenceMedia(ctx context.Context, iri *url.URL, expectedContentType string) ([]byte, error) { diff --git a/internal/transport/finger.go b/internal/transport/finger.go index 648db0194..a71bbb51e 100644 --- a/internal/transport/finger.go +++ b/internal/transport/finger.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -21,10 +21,11 @@ package transport import ( "context" "fmt" - "github.com/sirupsen/logrus" "io/ioutil" "net/http" "net/url" + + "github.com/sirupsen/logrus" ) func (t *transport) Finger(ctx context.Context, targetUsername string, targetDomain string) ([]byte, error) { diff --git a/internal/transport/transport.go b/internal/transport/transport.go index 5c0c7a61f..73b015865 100644 --- a/internal/transport/transport.go +++ b/internal/transport/transport.go @@ -1,6 +1,6 @@ /* GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org + Copyright (C) 2021-2022 GoToSocial Authors admin@gotosocial.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by |