diff options
author | 2022-11-30 17:44:02 +0100 | |
---|---|---|
committer | 2022-11-30 17:44:02 +0100 | |
commit | 3a11861ac67655aa87dea219067277ab30c553ad (patch) | |
tree | a1f9d8a28d39a7889c7ba526c1eba72c88b0a43c /internal/processing/followrequest_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/processing/followrequest_test.go')
-rw-r--r-- | internal/processing/followrequest_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/followrequest_test.go b/internal/processing/followrequest_test.go index 5be615ab5..399afb566 100644 --- a/internal/processing/followrequest_test.go +++ b/internal/processing/followrequest_test.go @@ -56,7 +56,7 @@ func (suite *FollowRequestTestSuite) TestFollowRequestAccept() { suite.NoError(errWithCode) suite.EqualValues(&apimodel.Relationship{ID: "01FHMQX3GAABWSM0S2VZEC2SWC", Following: false, ShowingReblogs: false, Notifying: false, FollowedBy: true, Blocking: false, BlockedBy: false, Muting: false, MutingNotifications: false, Requested: false, DomainBlocking: false, Endorsed: false, Note: ""}, relationship) - // accept should be sent to some_user + // accept should be sent to Some_User var sent [][]byte if !testrig.WaitFor(func() bool { sentI, ok := suite.httpClient.SentMessages.Load(requestingAccount.InboxURI) @@ -119,7 +119,7 @@ func (suite *FollowRequestTestSuite) TestFollowRequestReject() { suite.NoError(errWithCode) suite.EqualValues(&apimodel.Relationship{ID: "01FHMQX3GAABWSM0S2VZEC2SWC", Following: false, ShowingReblogs: false, Notifying: false, FollowedBy: false, Blocking: false, BlockedBy: false, Muting: false, MutingNotifications: false, Requested: false, DomainBlocking: false, Endorsed: false, Note: ""}, relationship) - // reject should be sent to some_user + // reject should be sent to Some_User var sent [][]byte if !testrig.WaitFor(func() bool { sentI, ok := suite.httpClient.SentMessages.Load(requestingAccount.InboxURI) |