mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 18:02:25 -05:00
[chore] Use generic pointer function (#2080)
This replaces the different $TypePtr functions with a generic implementation.
This commit is contained in:
parent
517829ae6a
commit
be3718f6e4
22 changed files with 393 additions and 391 deletions
|
|
@ -32,6 +32,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/util"
|
||||
"github.com/superseriousbusiness/gotosocial/testrig"
|
||||
)
|
||||
|
||||
|
|
@ -963,7 +964,7 @@ func (suite *ReportsGetTestSuite) TestReportsGetResolvedTargetAccount() {
|
|||
testAccount := suite.testAccounts["admin_account"]
|
||||
testToken := suite.testTokens["admin_account"]
|
||||
testUser := suite.testUsers["admin_account"]
|
||||
resolved := testrig.FalseBool()
|
||||
resolved := util.Ptr(false)
|
||||
targetAccount := suite.testAccounts["local_account_2"]
|
||||
|
||||
reports, link, err := suite.getReports(testAccount, testToken, testUser, http.StatusOK, "", resolved, "", targetAccount.ID, "", "", "", 20)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue