Skip to content

Commit

Permalink
fix(backend): アンテナのノート、チャンネルのノート、通知が正常に作成できないことがある問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored and na2na-p committed Apr 11, 2023
1 parent f890210 commit 2c75049
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
-->

## 13.x.x (unreleased)

### General
-

### Client
-

### Server
- アンテナのノート、チャンネルのノート、通知が正常に作成できないことがある問題を修正

## 13.11.1

### General
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/AntennaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {});
Expand Down

0 comments on commit 2c75049

Please sign in to comment.