mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-01 06:50:00 +00:00
use new ASRepToAccount signature
This commit is contained in:
parent
b23fdac317
commit
997e6f6c06
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ func (suite *UserGetTestSuite) TestGetUser() {
|
||||||
|
|
||||||
// convert person to account
|
// convert person to account
|
||||||
// since this account is already known, we should get a pretty full model of it from the conversion
|
// since this account is already known, we should get a pretty full model of it from the conversion
|
||||||
a, err := suite.tc.ASRepresentationToAccount(context.Background(), person, false)
|
a, err := suite.tc.ASRepresentationToAccount(context.Background(), person, "", false)
|
||||||
suite.NoError(err)
|
suite.NoError(err)
|
||||||
suite.EqualValues(targetAccount.Username, a.Username)
|
suite.EqualValues(targetAccount.Username, a.Username)
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ func (suite *UserGetTestSuite) TestGetUserPublicKeyDeleted() {
|
||||||
suite.True(ok)
|
suite.True(ok)
|
||||||
|
|
||||||
// convert person to account
|
// convert person to account
|
||||||
a, err := suite.tc.ASRepresentationToAccount(context.Background(), person, false)
|
a, err := suite.tc.ASRepresentationToAccount(context.Background(), person, "", false)
|
||||||
suite.NoError(err)
|
suite.NoError(err)
|
||||||
suite.EqualValues(targetAccount.Username, a.Username)
|
suite.EqualValues(targetAccount.Username, a.Username)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue