diff options
author | 2024-06-18 18:18:35 +0200 | |
---|---|---|
committer | 2024-06-18 18:18:35 +0200 | |
commit | 4ce5c37df5b69b09c6759ef751eb39a8bc839094 (patch) | |
tree | 76974b8d501623ceb2059276eeeb02a62371b2e3 /internal/db/bundb/notification.go | |
parent | [feature/frontend] Reports frontend v2 (#3022) (diff) | |
download | gotosocial-4ce5c37df5b69b09c6759ef751eb39a8bc839094.tar.xz |
[bugfix] rename `include_types[]` to `types[]` (#3023)
Diffstat (limited to 'internal/db/bundb/notification.go')
-rw-r--r-- | internal/db/bundb/notification.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/bundb/notification.go b/internal/db/bundb/notification.go index af147ab08..d5a96dd2d 100644 --- a/internal/db/bundb/notification.go +++ b/internal/db/bundb/notification.go @@ -200,7 +200,7 @@ func (n *notificationDB) GetAccountNotifications( sinceID string, minID string, limit int, - includeTypes []string, + types []string, excludeTypes []string, ) ([]*gtsmodel.Notification, error) { // Ensure reasonable @@ -238,9 +238,9 @@ func (n *notificationDB) GetAccountNotifications( frontToBack = false // page up } - if len(includeTypes) > 0 { + if len(types) > 0 { // Include only requested notification types. - q = q.Where("? IN (?)", bun.Ident("notification.notification_type"), bun.In(includeTypes)) + q = q.Where("? IN (?)", bun.Ident("notification.notification_type"), bun.In(types)) } if len(excludeTypes) > 0 { |