diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-11 15:51:07 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-11 15:51:07 +0900 |
| commit | 75b28d6782d9e1a37dd40444fbccffdf4331737a (patch) | |
| tree | 1b6a1b33ca19a579d7d24d92fef4bfb05ae1e86e /packages/backend/src/core/NotificationService.ts | |
| parent | Merge pull request #10543 from misskey-dev/develop (diff) | |
| parent | fix(client): noPaging: true with gallery/featured (diff) | |
| download | misskey-75b28d6782d9e1a37dd40444fbccffdf4331737a.tar.gz misskey-75b28d6782d9e1a37dd40444fbccffdf4331737a.tar.bz2 misskey-75b28d6782d9e1a37dd40444fbccffdf4331737a.zip | |
Merge pull request #10578 from misskey-dev/develop
Release: 13.11.2
Diffstat (limited to 'packages/backend/src/core/NotificationService.ts')
| -rw-r--r-- | packages/backend/src/core/NotificationService.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts index c44dddea41..6691c42836 100644 --- a/packages/backend/src/core/NotificationService.ts +++ b/packages/backend/src/core/NotificationService.ts @@ -66,6 +66,7 @@ export class NotificationService implements OnApplicationShutdown { @bindThis private postReadAllNotifications(userId: User['id']) { this.globalEventService.publishMainStream(userId, 'readAllNotifications'); + this.pushNotificationService.pushNotification(userId, 'readAllNotifications', undefined); } @bindThis @@ -99,7 +100,7 @@ export class NotificationService implements OnApplicationShutdown { const redisIdPromise = this.redisClient.xadd( `notificationTimeline:${notifieeId}`, 'MAXLEN', '~', '300', - `${this.idService.parse(notification.id).date.getTime()}-*`, + '*', 'data', JSON.stringify(notification)); const packed = await this.notificationEntityService.pack(notification, notifieeId, {}); |