mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Implement reports admin API so admins can view + close reports (#1378)
* add admin report api endpoints + tests * [chore] remove funky duplicate attachment in testrig
This commit is contained in:
@ -62,6 +62,7 @@ type AdminStandardTestSuite struct {
|
||||
testStatuses map[string]*gtsmodel.Status
|
||||
testEmojis map[string]*gtsmodel.Emoji
|
||||
testEmojiCategories map[string]*gtsmodel.EmojiCategory
|
||||
testReports map[string]*gtsmodel.Report
|
||||
|
||||
// module being tested
|
||||
adminModule *admin.Module
|
||||
@ -77,6 +78,7 @@ func (suite *AdminStandardTestSuite) SetupSuite() {
|
||||
suite.testStatuses = testrig.NewTestStatuses()
|
||||
suite.testEmojis = testrig.NewTestEmojis()
|
||||
suite.testEmojiCategories = testrig.NewTestEmojiCategories()
|
||||
suite.testReports = testrig.NewTestReports()
|
||||
}
|
||||
|
||||
func (suite *AdminStandardTestSuite) SetupTest() {
|
||||
|
Reference in New Issue
Block a user