diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 12:25:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 12:25:00 +0900 |
| commit | 6909add1ec991cf4f9fdcc05978520f30414f576 (patch) | |
| tree | 18eeb26555e82ebd4079db3a8291b807f2cc9a75 /src/server/api/endpoints/notes/timeline.ts | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-6909add1ec991cf4f9fdcc05978520f30414f576.tar.gz sharkey-6909add1ec991cf4f9fdcc05978520f30414f576.tar.bz2 sharkey-6909add1ec991cf4f9fdcc05978520f30414f576.zip | |
Drop stalk feature
Resolve #3935
Closes #2226
Closes #1946
Diffstat (limited to 'src/server/api/endpoints/notes/timeline.ts')
| -rw-r--r-- | src/server/api/endpoints/notes/timeline.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/api/endpoints/notes/timeline.ts b/src/server/api/endpoints/notes/timeline.ts index 24ed222e9a..9b0cc6ac20 100644 --- a/src/server/api/endpoints/notes/timeline.ts +++ b/src/server/api/endpoints/notes/timeline.ts @@ -117,9 +117,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { _id: -1 }; - const followQuery = followings.map(f => f.stalk ? { - userId: f.id - } : { + const followQuery = followings.map(f => ({ userId: f.id, // ストーキングしてないならリプライは含めない(ただし投稿者自身の投稿へのリプライ、自分の投稿へのリプライ、自分のリプライは含める) @@ -138,7 +136,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { // 自分(フォロワー)が送信したリプライ userId: user._id }] - }); + })); const visibleQuery = user == null ? [{ visibility: { $in: [ 'public', 'home' ] } |