Update NoteCreateService.ts

This commit is contained in:
syuilo 2023-10-02 02:34:04 +09:00
parent c019e9cad5
commit f0a2c3ce76

View file

@ -800,7 +800,7 @@ export class NoteCreateService implements OnApplicationShutdown {
private async pushToTl(note: MiNote, user: { id: MiUser['id']; host: MiUser['host']; }) { private async pushToTl(note: MiNote, user: { id: MiUser['id']; host: MiUser['host']; }) {
const redisPipeline = this.redisClient.pipeline(); const redisPipeline = this.redisClient.pipeline();
if (note.replyId) { if (note.replyId && note.replyUserId !== note.userId) {
if (note.visibility === 'public' || note.visibility === 'home') { if (note.visibility === 'public' || note.visibility === 'home') {
redisPipeline.xadd( redisPipeline.xadd(
`userTimelineWithReplies:${user.id}`, `userTimelineWithReplies:${user.id}`,