Update NoteCreateService.ts

This commit is contained in:
syuilo 2023-10-03 18:17:06 +09:00
parent e840544dd2
commit 7a3dd400d8
1 changed files with 3 additions and 3 deletions

View File

@ -917,20 +917,20 @@ export class NoteCreateService implements OnApplicationShutdown {
if (note.replyId && note.replyUserId !== note.userId) {
redisPipeline.xadd(
`userTimelineWithReplies:${user.id}`,
'MAXLEN', '~', '200',
'MAXLEN', '~', '1000',
'*',
'note', note.id);
} else {
redisPipeline.xadd(
`userTimeline:${user.id}`,
'MAXLEN', '~', '200',
'MAXLEN', '~', '1000',
'*',
'note', note.id);
if (note.fileIds.length > 0) {
redisPipeline.xadd(
`userTimelineWithFiles:${user.id}`,
'MAXLEN', '~', '100',
'MAXLEN', '~', '500',
'*',
'note', note.id);
}