diff options
author | 2022-11-30 17:44:02 +0100 | |
---|---|---|
committer | 2022-11-30 17:44:02 +0100 | |
commit | 3a11861ac67655aa87dea219067277ab30c553ad (patch) | |
tree | a1f9d8a28d39a7889c7ba526c1eba72c88b0a43c /internal/api/client/followrequest/get_test.go | |
parent | [bugfix] use correct key for PATCHing admin email (#1189) (diff) | |
download | gotosocial-3a11861ac67655aa87dea219067277ab30c553ad.tar.xz |
[bugfix] Don't call `strings.ToLower()` on usernames when selecting account by domain+username (#1190)
* don't lowercase account username when doing a select
* test getting remote user with uppercase username
Diffstat (limited to 'internal/api/client/followrequest/get_test.go')
-rw-r--r-- | internal/api/client/followrequest/get_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/followrequest/get_test.go b/internal/api/client/followrequest/get_test.go index 01c9cc300..c9b72a35b 100644 --- a/internal/api/client/followrequest/get_test.go +++ b/internal/api/client/followrequest/get_test.go @@ -70,7 +70,7 @@ func (suite *GetTestSuite) TestGet() { b, err := ioutil.ReadAll(result.Body) assert.NoError(suite.T(), err) - suite.Equal(`[{"id":"01FHMQX3GAABWSM0S2VZEC2SWC","username":"some_user","acct":"some_user@example.org","display_name":"some user","locked":true,"bot":false,"created_at":"2020-08-10T12:13:28.000Z","note":"i'm a real son of a gun","url":"http://example.org/@some_user","avatar":"","avatar_static":"","header":"http://localhost:8080/assets/default_header.png","header_static":"http://localhost:8080/assets/default_header.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}]`, string(b)) + suite.Equal(`[{"id":"01FHMQX3GAABWSM0S2VZEC2SWC","username":"Some_User","acct":"Some_User@example.org","display_name":"some user","locked":true,"bot":false,"created_at":"2020-08-10T12:13:28.000Z","note":"i'm a real son of a gun","url":"http://example.org/@Some_User","avatar":"","avatar_static":"","header":"http://localhost:8080/assets/default_header.png","header_static":"http://localhost:8080/assets/default_header.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}]`, string(b)) } func TestGetTestSuite(t *testing.T) { |