From 5247292ce85bd0de3ff24712ffb1eaee6d77b0b4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 29 Apr 2018 09:29:39 +0900 Subject: [PATCH] wip --- src/services/note/create.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 8d6626713..c2c03516e 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -123,7 +123,7 @@ export default async (user: IUser, data: { if (note.channelId == null) { if (!silent) { if (isLocalUser(user)) { - if (note.visibility == 'private') { + if (note.visibility == 'private' || note.visibility == 'followers' || note.visibility == 'specified') { // Publish event to myself's stream stream(note.userId, 'note', await pack(note, user, { detail: true @@ -133,7 +133,9 @@ export default async (user: IUser, data: { stream(note.userId, 'note', noteObj); // Publish note to local timeline stream - publishLocalTimelineStream(noteObj); + if (note.visibility != 'home') { + publishLocalTimelineStream(noteObj); + } } }