mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature/frontend] Reports frontend v2 (#3022)
* use apiutil + paging in admin processor+handlers * we're making it happen * fix little whoopsie * styling for report list * don't youuuu forget about meee don't don't don't don't * last bits * sanitize content before showing in report statuses * update report docs
This commit is contained in:
@ -29,6 +29,7 @@ import (
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/api/client/admin"
|
||||
apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
|
||||
apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
@ -65,7 +66,7 @@ func (suite *ReportResolveTestSuite) resolveReport(
|
||||
|
||||
// create the request
|
||||
ctx.Request = httptest.NewRequest(http.MethodPost, requestURI, nil)
|
||||
ctx.AddParam(admin.IDKey, targetReportID)
|
||||
ctx.AddParam(apiutil.IDKey, targetReportID)
|
||||
ctx.Request.Header.Set("accept", "application/json")
|
||||
if actionTakenComment != nil {
|
||||
ctx.Request.Form = url.Values{"action_taken_comment": {*actionTakenComment}}
|
||||
|
Reference in New Issue
Block a user