Update NoteCreateService.ts
This commit is contained in:
parent
e840544dd2
commit
7a3dd400d8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue