From 3a11861ac67655aa87dea219067277ab30c553ad Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 30 Nov 2022 17:44:02 +0100 Subject: [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 --- internal/processing/followrequest_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/processing/followrequest_test.go') 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) -- cgit v1.2.3