summaryrefslogtreecommitdiff
path: root/src/services/note
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-20 13:14:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-20 13:14:31 +0900
commitb39d12f01aff8980023398030fbca1be5bf679f5 (patch)
tree5f9e45bd517e6c154798665942a72ecfbce8f456 /src/services/note
parentDrop stalk feature (diff)
downloadsharkey-b39d12f01aff8980023398030fbca1be5bf679f5.tar.gz
sharkey-b39d12f01aff8980023398030fbca1be5bf679f5.tar.bz2
sharkey-b39d12f01aff8980023398030fbca1be5bf679f5.zip
関係のない返信がタイムラインに流れる問題を修正
Resolve #1910
Diffstat (limited to 'src/services/note')
-rw-r--r--src/services/note/create.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index f8d1c24087..b5e5c4e49c 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -375,11 +375,17 @@ async function publish(user: IUser, note: INote, noteObj: any, reply: INote, ren
// Publish note to local and hybrid timeline stream
if (note.visibility != 'home') {
- publishLocalTimelineStream(noteObj);
+ // Ignore if it is a reply
+ if (note.replyId == null) {
+ publishLocalTimelineStream(noteObj);
+ }
}
if (note.visibility == 'public') {
- publishHybridTimelineStream(null, noteObj);
+ // Ignore if it is a reply
+ if (note.replyId == null) {
+ publishHybridTimelineStream(null, noteObj);
+ }
} else {
// Publish event to myself's stream
publishHybridTimelineStream(note.userId, noteObj);