diff options
author | 2021-05-31 17:36:35 +0200 | |
---|---|---|
committer | 2021-05-31 17:36:35 +0200 | |
commit | 6ac6f8d614d17910d929981bde7d80d8ec2c0b6e (patch) | |
tree | e7a51ba572a7cc880bbc22dacb999236ac6e36e6 /internal/processing/notification.go | |
parent | Move a lot of stuff + tidy stuff (#37) (diff) | |
download | gotosocial-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.go | 4 |
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) } |