summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-05 22:54:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-05 22:54:03 +0900
commitdfa2c951d67a64f4e72a0ebca7ff81e40fc25976 (patch)
treeaf5fa981667e8d6b98c93c928e72abc63a5b8767 /src/services
parentwip (diff)
downloadsharkey-dfa2c951d67a64f4e72a0ebca7ff81e40fc25976.tar.gz
sharkey-dfa2c951d67a64f4e72a0ebca7ff81e40fc25976.tar.bz2
sharkey-dfa2c951d67a64f4e72a0ebca7ff81e40fc25976.zip
wip
Diffstat (limited to 'src/services')
-rw-r--r--src/services/note/create.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 37d21fecad..f820182a42 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -221,7 +221,9 @@ export default async (user: IUser, data: {
}
// Publish note to global timeline stream
- publishGlobalTimelineStream(noteObj);
+ if (note.visibility == 'public' && note.replyId == null) {
+ publishGlobalTimelineStream(noteObj);
+ }
if (note.visibility == 'specified') {
data.visibleUsers.forEach(async u => {