summaryrefslogtreecommitdiff
path: root/src/services/note/create.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-07-14 13:47:36 +0900
committerGitHub <noreply@github.com>2018-07-14 13:47:36 +0900
commit4add44f3bd795fca2966021b0470331c1454691f (patch)
tree4de528030efd27c96ddcfdf98dfdcdd9b6f3373a /src/services/note/create.ts
parentMerge pull request #1900 from syuilo/l10n_master (diff)
downloadsharkey-4add44f3bd795fca2966021b0470331c1454691f.tar.gz
sharkey-4add44f3bd795fca2966021b0470331c1454691f.tar.bz2
sharkey-4add44f3bd795fca2966021b0470331c1454691f.zip
Update create.ts
Diffstat (limited to 'src/services/note/create.ts')
-rw-r--r--src/services/note/create.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index d4daa6f477..b437950461 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -308,7 +308,10 @@ export default async (user: IUser, data: {
// Publish event to followers stream
stream(following.followerId, 'note', noteObj);
- publishHybridTimelineStream(following.followerId, noteObj);
+
+ if (note.visibility != 'public') {
+ publishHybridTimelineStream(following.followerId, noteObj);
+ }
} else {
//#region AP配送
// フォロワーがリモートユーザーかつ投稿者がローカルユーザーなら投稿を配信