diff options
author | 2021-05-31 17:36:35 +0200 | |
---|---|---|
committer | 2021-05-31 17:36:35 +0200 | |
commit | 6ac6f8d614d17910d929981bde7d80d8ec2c0b6e (patch) | |
tree | e7a51ba572a7cc880bbc22dacb999236ac6e36e6 /internal/api/client/notification/notificationsget.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/api/client/notification/notificationsget.go')
-rw-r--r-- | internal/api/client/notification/notificationsget.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/api/client/notification/notificationsget.go b/internal/api/client/notification/notificationsget.go index a2d049384..a30674750 100644 --- a/internal/api/client/notification/notificationsget.go +++ b/internal/api/client/notification/notificationsget.go @@ -62,7 +62,13 @@ func (m *Module) NotificationsGETHandler(c *gin.Context) { maxID = maxIDString } - notifs, errWithCode := m.processor.NotificationsGet(authed, limit, maxID) + sinceID := "" + sinceIDString := c.Query(SinceIDKey) + if sinceIDString != "" { + sinceID = sinceIDString + } + + notifs, errWithCode := m.processor.NotificationsGet(authed, limit, maxID, sinceID) if errWithCode != nil { l.Debugf("error processing notifications get: %s", errWithCode.Error()) c.JSON(errWithCode.Code(), gin.H{"error": errWithCode.Safe()}) |