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) { if (note.replyId && note.replyUserId !== note.userId) {
redisPipeline.xadd( redisPipeline.xadd(
`userTimelineWithReplies:${user.id}`, `userTimelineWithReplies:${user.id}`,
'MAXLEN', '~', '200', 'MAXLEN', '~', '1000',
'*', '*',
'note', note.id); 'note', note.id);
} else { } else {
redisPipeline.xadd( redisPipeline.xadd(
`userTimeline:${user.id}`, `userTimeline:${user.id}`,
'MAXLEN', '~', '200', 'MAXLEN', '~', '1000',
'*', '*',
'note', note.id); 'note', note.id);
if (note.fileIds.length > 0) { if (note.fileIds.length > 0) {
redisPipeline.xadd( redisPipeline.xadd(
`userTimelineWithFiles:${user.id}`, `userTimelineWithFiles:${user.id}`,
'MAXLEN', '~', '100', 'MAXLEN', '~', '500',
'*', '*',
'note', note.id); 'note', note.id);
} }