summaryrefslogtreecommitdiff
path: root/internal/api/client/notification/notificationsget.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/notification/notificationsget.go')
-rw-r--r--internal/api/client/notification/notificationsget.go8
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()})