diff options
author | 2024-05-01 15:11:22 +0200 | |
---|---|---|
committer | 2024-05-01 14:11:22 +0100 | |
commit | 725a21b02721f92ed0420ed3f807ee921de77992 (patch) | |
tree | 3940e4b0a7cf3328357ccb86be971126ab2a12b5 /internal/api/client/statuses/statushistory_test.go | |
parent | [bugfix] Tidy up remaining references to workers in cmd (#2889) (diff) | |
download | gotosocial-725a21b02721f92ed0420ed3f807ee921de77992.tar.xz |
[feature] Page through accounts as moderator (#2881)
* [feature] Page through accounts as moderator
* aaaaa
* use COLLATE "C" for Postgres to ensure same ordering as SQLite
* fix typo, test paging up
* don't show moderation / info for our instance acct
Diffstat (limited to 'internal/api/client/statuses/statushistory_test.go')
-rw-r--r-- | internal/api/client/statuses/statushistory_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/statuses/statushistory_test.go b/internal/api/client/statuses/statushistory_test.go index e524e9239..a0cb3d482 100644 --- a/internal/api/client/statuses/statushistory_test.go +++ b/internal/api/client/statuses/statushistory_test.go @@ -50,10 +50,10 @@ func (suite *StatusHistoryTestSuite) TestGetHistory() { // Setup request. recorder := httptest.NewRecorder() - request := httptest.NewRequest(http.MethodGet, target, nil) + request := httptest.NewRequest(http.MethodGet, target, nil) request.Header.Set("accept", "application/json") ctx, _ := testrig.CreateGinTestContext(recorder, request) - + // Set auth + path params. ctx.Set(oauth.SessionAuthorizedApplication, testApplication) ctx.Set(oauth.SessionAuthorizedToken, testToken) |