diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 05:45:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-10 05:45:29 +0900 |
| commit | 507a19248925ad9098956709dfaaba25ed070f54 (patch) | |
| tree | 4509eae725eb4d25aa52ac006399cba216775c26 /src | |
| parent | 8.34.0 (diff) | |
| download | misskey-507a19248925ad9098956709dfaaba25ed070f54.tar.gz misskey-507a19248925ad9098956709dfaaba25ed070f54.tar.bz2 misskey-507a19248925ad9098956709dfaaba25ed070f54.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/note/create.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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); } } } |