summaryrefslogtreecommitdiff
path: root/internal/processing/notification.go
diff options
context:
space:
mode:
authorLibravatar Blackle Morisanchetto <isabelle@blackle-mori.com>2022-08-31 13:20:52 -0400
committerLibravatar GitHub <noreply@github.com>2022-08-31 19:20:52 +0200
commitecb97f4e0bae0735464880cd850e964f292f2e92 (patch)
treec0c6c6576beaf1e4a0bbd740d8db9341d77b2ae6 /internal/processing/notification.go
parent[bugfix] Use custom blackfriday renderer to only add mention/hashtag links in... (diff)
downloadgotosocial-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/processing/notification.go')
-rw-r--r--internal/processing/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/notification.go b/internal/processing/notification.go
index 66b967afa..fd2651d4a 100644
--- a/internal/processing/notification.go
+++ b/internal/processing/notification.go
@@ -29,8 +29,8 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/util"
)
-func (p *processor) NotificationsGet(ctx context.Context, authed *oauth.Auth, limit int, maxID string, sinceID string) (*apimodel.TimelineResponse, gtserror.WithCode) {
- notifs, err := p.db.GetNotifications(ctx, authed.Account.ID, limit, maxID, sinceID)
+func (p *processor) NotificationsGet(ctx context.Context, authed *oauth.Auth, excludeTypes []string, limit int, maxID string, sinceID string) (*apimodel.TimelineResponse, gtserror.WithCode) {
+ notifs, err := p.db.GetNotifications(ctx, authed.Account.ID, excludeTypes, limit, maxID, sinceID)
if err != nil {
return nil, gtserror.NewErrorInternalError(err)
}