diff options
| author | 2025-01-23 17:18:23 +0000 | |
|---|---|---|
| committer | 2025-01-23 18:18:23 +0100 | |
| commit | 9333bbc4d0d5ae46c72fca1f5b1aacb3c0a7653e (patch) | |
| tree | e7ccd1dc3abff5386e0b86e6baf659c9aa3b55a5 /testrig/transportcontroller.go | |
| parent | [feature] Add warning about `trusted-proxies` to make config easier (#3675) (diff) | |
| download | gotosocial-9333bbc4d0d5ae46c72fca1f5b1aacb3c0a7653e.tar.xz | |
[feature] Serve bot accounts over AP as Service instead of Person (#3672)
* pepis
* oopsie doopsie
* bollocks
Diffstat (limited to 'testrig/transportcontroller.go')
| -rw-r--r-- | testrig/transportcontroller.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testrig/transportcontroller.go b/testrig/transportcontroller.go index 3bc8752e0..b886e5c40 100644 --- a/testrig/transportcontroller.go +++ b/testrig/transportcontroller.go @@ -29,6 +29,7 @@ import ( "github.com/superseriousbusiness/activity/pub" "github.com/superseriousbusiness/activity/streams" "github.com/superseriousbusiness/activity/streams/vocab" + "github.com/superseriousbusiness/gotosocial/internal/ap" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/federation" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" @@ -81,7 +82,7 @@ type MockHTTPClient struct { // to customize how the client is mocked. // // Note that you should never ever make ACTUAL http calls with this thing. -func NewMockHTTPClient(do func(req *http.Request) (*http.Response, error), relativeMediaPath string, extraPeople ...vocab.ActivityStreamsPerson) *MockHTTPClient { +func NewMockHTTPClient(do func(req *http.Request) (*http.Response, error), relativeMediaPath string, extraPeople ...ap.Accountable) *MockHTTPClient { mockHTTPClient := &MockHTTPClient{} if do != nil { |
