This commit is contained in:
syuilo
2023-10-02 08:04:06 +09:00
parent f0a2c3ce76
commit 85430fd889
3 changed files with 72 additions and 48 deletions

View File

@@ -893,6 +893,22 @@ export class NoteCreateService implements OnApplicationShutdown {
'*',
'note', note.id);
}
if (note.userHost == null) {
redisPipeline.xadd(
'localTimeline',
'MAXLEN', '~', '1000',
'*',
'note', note.id);
if (note.fileIds.length > 0) {
redisPipeline.xadd(
'localTimelineWithFiles',
'MAXLEN', '~', '1000',
'*',
'note', note.id);
}
}
}
}