summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-10 10:03:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-10 10:03:53 +0900
commit70a06e30d52cfacdfdc4122f9c1a9e09c4bc7e1d (patch)
tree19019dbcee117cb3c5e2d6ac792cf1a32629aac6 /packages/backend/src
parentfix(backend): イベント用redis分離が上手く動かない問題を修正 (diff)
downloadsharkey-70a06e30d52cfacdfdc4122f9c1a9e09c4bc7e1d.tar.gz
sharkey-70a06e30d52cfacdfdc4122f9c1a9e09c4bc7e1d.tar.bz2
sharkey-70a06e30d52cfacdfdc4122f9c1a9e09c4bc7e1d.zip
fix(backend): アンテナのノート、チャンネルのノート、通知が正常に作成できないことがある問題を修正
Fix #10482
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/core/AntennaService.ts2
-rw-r--r--packages/backend/src/core/NoteCreateService.ts2
-rw-r--r--packages/backend/src/core/NotificationService.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/AntennaService.ts b/packages/backend/src/core/AntennaService.ts
index 47ebd4c748..02e0b455fd 100644
--- a/packages/backend/src/core/AntennaService.ts
+++ b/packages/backend/src/core/AntennaService.ts
@@ -95,7 +95,7 @@ export class AntennaService implements OnApplicationShutdown {
this.redisClient.xadd(
`antennaTimeline:${antenna.id}`,
'MAXLEN', '~', '200',
- `${this.idService.parse(note.id).date.getTime()}-*`,
+ '*',
'note', note.id);
this.globalEventService.publishAntennaStream(antenna.id, 'note', note);
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 5c4d13f178..fb7ee7080a 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -329,7 +329,7 @@ export class NoteCreateService implements OnApplicationShutdown {
this.redisClient.xadd(
`channelTimeline:${data.channel.id}`,
'MAXLEN', '~', '1000',
- `${this.idService.parse(note.id).date.getTime()}-*`,
+ '*',
'note', note.id);
}
diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts
index c44dddea41..c7dac061b2 100644
--- a/packages/backend/src/core/NotificationService.ts
+++ b/packages/backend/src/core/NotificationService.ts
@@ -99,7 +99,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, {});