diff options
author | 2022-08-31 13:20:52 -0400 | |
---|---|---|
committer | 2022-08-31 19:20:52 +0200 | |
commit | ecb97f4e0bae0735464880cd850e964f292f2e92 (patch) | |
tree | c0c6c6576beaf1e4a0bbd740d8db9341d77b2ae6 /internal/db/notification.go | |
parent | [bugfix] Use custom blackfriday renderer to only add mention/hashtag links in... (diff) | |
download | gotosocial-ecb97f4e0bae0735464880cd850e964f292f2e92.tar.xz |
[feature] Add support for the exclude_types[] parameter on the notifications endpoint (#784)
* Add support for the exclude_types[] parameter on the notifications endpoint
* Add swagger docs to notifications
Diffstat (limited to 'internal/db/notification.go')
-rw-r--r-- | internal/db/notification.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/notification.go b/internal/db/notification.go index 7d8258d93..14d9b2c47 100644 --- a/internal/db/notification.go +++ b/internal/db/notification.go @@ -29,7 +29,7 @@ type Notification interface { // GetNotifications returns a slice of notifications that pertain to the given accountID. // // Returned notifications will be ordered ID descending (ie., highest/newest to lowest/oldest). - GetNotifications(ctx context.Context, accountID string, limit int, maxID string, sinceID string) ([]*gtsmodel.Notification, Error) + GetNotifications(ctx context.Context, accountID string, excludeTypes []string, limit int, maxID string, sinceID string) ([]*gtsmodel.Notification, Error) // GetNotification returns one notification according to its id. GetNotification(ctx context.Context, id string) (*gtsmodel.Notification, Error) // ClearNotifications deletes every notification that pertain to the given accountID. |