diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 02:07:13 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 02:07:13 +0900 |
| commit | e36d45507ad97f2590fba941d7ab22ebb524486d (patch) | |
| tree | 5170ec4e0ea2d32e17f79a73e64b482e84f31802 /src/services/note/create.ts | |
| parent | Fix #1740 (diff) | |
| download | sharkey-e36d45507ad97f2590fba941d7ab22ebb524486d.tar.gz sharkey-e36d45507ad97f2590fba941d7ab22ebb524486d.tar.bz2 sharkey-e36d45507ad97f2590fba941d7ab22ebb524486d.zip | |
Fix #2513
Diffstat (limited to 'src/services/note/create.ts')
| -rw-r--r-- | src/services/note/create.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 1ae363d915..7062bc481b 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') { |