From b39d12f01aff8980023398030fbca1be5bf679f5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 20 Jan 2019 13:14:31 +0900 Subject: 関係のない返信がタイムラインに流れる問題を修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolve #1910 --- src/services/note/create.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/services') diff --git a/src/services/note/create.ts b/src/services/note/create.ts index f8d1c24087..b5e5c4e49c 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -375,11 +375,17 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren // Publish note to local and hybrid timeline stream if (note.visibility != 'home') { - publishLocalTimelineStream(noteObj); + // Ignore if it is a reply + if (note.replyId == null) { + publishLocalTimelineStream(noteObj); + } } if (note.visibility == 'public') { - publishHybridTimelineStream(null, noteObj); + // Ignore if it is a reply + if (note.replyId == null) { + publishHybridTimelineStream(null, noteObj); + } } else { // Publish event to myself's stream publishHybridTimelineStream(note.userId, noteObj); -- cgit v1.2.3-freya