diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-03-27 20:20:42 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-03-27 20:20:42 -0400 |
| commit | a92416904f32ad0595556be3a6baf1137bdfb791 (patch) | |
| tree | 6a8765536ad3fbf3e1bd9e7abd6e547c10a9d707 /packages/backend/src/server/api | |
| parent | strip "@." from local reaction names (diff) | |
| download | sharkey-a92416904f32ad0595556be3a6baf1137bdfb791.tar.gz sharkey-a92416904f32ad0595556be3a6baf1137bdfb791.tar.bz2 sharkey-a92416904f32ad0595556be3a6baf1137bdfb791.zip | |
use exclusive ranges in api/i/notifications and /api/v1/notifications
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/i/notifications.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 5e97b90f99..3c1e43303c 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -84,8 +84,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- const includeTypes = ps.includeTypes && ps.includeTypes.filter(type => !(obsoleteNotificationTypes).includes(type as any)) as typeof notificationTypes[number][]; const excludeTypes = ps.excludeTypes && ps.excludeTypes.filter(type => !(obsoleteNotificationTypes).includes(type as any)) as typeof notificationTypes[number][]; - let sinceTime = ps.sinceId ? this.idService.parse(ps.sinceId).date.getTime().toString() : null; - let untilTime = ps.untilId ? this.idService.parse(ps.untilId).date.getTime().toString() : null; + let sinceTime = ps.sinceId ? (this.idService.parse(ps.sinceId).date.getTime() + 1).toString() : null; + let untilTime = ps.untilId ? (this.idService.parse(ps.untilId).date.getTime() - 1).toString() : null; let notifications: MiNotification[]; for (;;) { |