[feature] Implement types[] param for notifications (#3009)

Counterpart of exclude_types[].

Also updates Swagger spec for types[] to use the correct param name and enumerate possible values.

Fixes #3003
This commit is contained in:
Vyr Cossont
2024-06-17 12:50:50 -07:00
committed by GitHub
parent 7ab404d643
commit b08c1bd0cb
10 changed files with 459 additions and 13 deletions

View File

@@ -87,7 +87,7 @@ func (suite *SurfaceNotifyTestSuite) TestSpamNotifs() {
notifs, err := testStructs.State.DB.GetAccountNotifications(
gtscontext.SetBarebones(ctx),
targetAccount.ID,
"", "", "", 0, nil,
"", "", "", 0, nil, nil,
)
if err != nil {
suite.FailNow(err.Error())