diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-19 14:32:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-19 14:32:00 +0900 |
| commit | 6ea168485a31caab5d289fa6d78b975b147402ec (patch) | |
| tree | b73bea4b25af28590084cb4b45379e72c517df2f | |
| parent | oops (diff) | |
| download | sharkey-6ea168485a31caab5d289fa6d78b975b147402ec.tar.gz sharkey-6ea168485a31caab5d289fa6d78b975b147402ec.tar.bz2 sharkey-6ea168485a31caab5d289fa6d78b975b147402ec.zip | |
Fix bug
| -rw-r--r-- | src/services/note/create.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 32db77011f..ca01b557d6 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -150,8 +150,11 @@ export default async (user: IUser, data: { const follower = following._follower; if (isLocalUser(follower)) { - // この投稿が返信かつstalkフォローでないならスキップ - if (note.replyId && !following.stalk) return; + // ストーキングしていない場合 + if (!following.stalk) { + // この投稿が返信ならスキップ + if (note.replyId && !note._reply.userId.equals(following.followerId) && !note._reply.userId.equals(note.userId)) return; + } // Publish event to followers stream stream(following.followerId, 'note', noteObj); |