summaryrefslogtreecommitdiff
path: root/internal/processing/notification.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-31 17:36:35 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-31 17:36:35 +0200
commit6ac6f8d614d17910d929981bde7d80d8ec2c0b6e (patch)
treee7a51ba572a7cc880bbc22dacb999236ac6e36e6 /internal/processing/notification.go
parentMove a lot of stuff + tidy stuff (#37) (diff)
downloadgotosocial-6ac6f8d614d17910d929981bde7d80d8ec2c0b6e.tar.xz
Tidy + timeline embetterment (#38)
* tidy up timelines a bit + stub out some endpoints * who's faved and who's boosted, reblog notifs * linting * Update progress with new endpoints
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 36cd81b91..44e3885b5 100644
--- a/internal/processing/notification.go
+++ b/internal/processing/notification.go
@@ -23,10 +23,10 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/oauth"
)
-func (p *processor) NotificationsGet(authed *oauth.Auth, limit int, maxID string) ([]*apimodel.Notification, ErrorWithCode) {
+func (p *processor) NotificationsGet(authed *oauth.Auth, limit int, maxID string, sinceID string) ([]*apimodel.Notification, ErrorWithCode) {
l := p.log.WithField("func", "NotificationsGet")
- notifs, err := p.db.GetNotificationsForAccount(authed.Account.ID, limit, maxID)
+ notifs, err := p.db.GetNotificationsForAccount(authed.Account.ID, limit, maxID, sinceID)
if err != nil {
return nil, NewErrorInternalError(err)
}