From 4a012acd5255585045babfb38202e9df4bb1fdee Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 4 May 2023 12:27:24 +0200 Subject: [bugfix] Rework notifs to use min_id for paging up (#1734) --- internal/api/client/notifications/notifications.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'internal/api/client/notifications/notifications.go') diff --git a/internal/api/client/notifications/notifications.go b/internal/api/client/notifications/notifications.go index 52b06f385..8e0890461 100644 --- a/internal/api/client/notifications/notifications.go +++ b/internal/api/client/notifications/notifications.go @@ -36,12 +36,10 @@ const ( // ExcludeTypes is an array specifying notification types to exclude ExcludeTypesKey = "exclude_types[]" - // MaxIDKey is the url query for setting a max notification ID to return - MaxIDKey = "max_id" - // LimitKey is for specifying maximum number of notifications to return. - LimitKey = "limit" - // SinceIDKey is for specifying the minimum notification ID to return. - SinceIDKey = "since_id" + MaxIDKey = "max_id" + LimitKey = "limit" + SinceIDKey = "since_id" + MinIDKey = "min_id" ) type Module struct { -- cgit v1.2.3