summaryrefslogtreecommitdiff
path: root/internal/db/notification.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-06-18 18:18:35 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-18 18:18:35 +0200
commit4ce5c37df5b69b09c6759ef751eb39a8bc839094 (patch)
tree76974b8d501623ceb2059276eeeb02a62371b2e3 /internal/db/notification.go
parent[feature/frontend] Reports frontend v2 (#3022) (diff)
downloadgotosocial-4ce5c37df5b69b09c6759ef751eb39a8bc839094.tar.xz
[bugfix] rename `include_types[]` to `types[]` (#3023)
Diffstat (limited to 'internal/db/notification.go')
-rw-r--r--internal/db/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go
index 2e8f5ed1f..deb58835a 100644
--- a/internal/db/notification.go
+++ b/internal/db/notification.go
@@ -28,8 +28,8 @@ type Notification interface {
// GetAccountNotifications returns a slice of notifications that pertain to the given accountID.
//
// Returned notifications will be ordered ID descending (ie., highest/newest to lowest/oldest).
- // If includeTypes is empty, *all* notification types will be included.
- GetAccountNotifications(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, includeTypes []string, excludeTypes []string) ([]*gtsmodel.Notification, error)
+ // If types is empty, *all* notification types will be included.
+ GetAccountNotifications(ctx context.Context, accountID string, maxID string, sinceID string, minID string, limit int, types []string, excludeTypes []string) ([]*gtsmodel.Notification, error)
// GetNotificationByID returns one notification according to its id.
GetNotificationByID(ctx context.Context, id string) (*gtsmodel.Notification, error)