From e36d45507ad97f2590fba941d7ab22ebb524486d Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 10 Sep 2018 02:07:13 +0900 Subject: [PATCH] Fix #2513 --- src/services/note/create.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 1ae363d91..7062bc481 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -269,13 +269,16 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren } if (['private', 'followers', 'specified'].includes(note.visibility)) { - // Publish event to myself's stream - publishUserStream(note.userId, 'note', await pack(note, user, { + const detailPackedNote = await pack(note, user, { detail: true - })); + }); + // Publish event to myself's stream + publishUserStream(note.userId, 'note', detailPackedNote); + publishHybridTimelineStream(note.userId, detailPackedNote); } 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') {