Drop stalk feature

Resolve #3935
Closes #2226
Closes #1946
This commit is contained in:
syuilo 2019-01-20 12:25:00 +09:00
parent d53d059480
commit 6909add1ec
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
12 changed files with 11 additions and 157 deletions

View file

@ -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' ] }