[bugfix] rename include_types[] to types[] (#3023)

This commit is contained in:
tobi 2024-06-18 18:18:35 +02:00 committed by GitHub
commit 4ce5c37df5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 19 additions and 19 deletions

View file

@ -41,7 +41,7 @@ func (p *Processor) NotificationsGet(
sinceID string,
minID string,
limit int,
includeTypes []string,
types []string,
excludeTypes []string,
) (*apimodel.PageableResponse, gtserror.WithCode) {
notifs, err := p.state.DB.GetAccountNotifications(
@ -51,7 +51,7 @@ func (p *Processor) NotificationsGet(
sinceID,
minID,
limit,
includeTypes,
types,
excludeTypes,
)
if err != nil && !errors.Is(err, db.ErrNoEntries) {