From 507a19248925ad9098956709dfaaba25ed070f54 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 10 Sep 2018 05:45:29 +0900 Subject: [PATCH] Fix bug --- src/services/note/create.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 94ca246e5b..771e9cade8 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -278,7 +278,6 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren } else { // Publish event to myself's stream publishUserStream(note.userId, 'note', noteObj); - publishHybridTimelineStream(note.userId, noteObj); // Publish note to local and hybrid timeline stream if (note.visibility != 'home') { @@ -287,6 +286,9 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren if (note.visibility == 'public') { publishHybridTimelineStream(null, noteObj); + } else { + // Publish event to myself's stream + publishHybridTimelineStream(note.userId, noteObj); } } }