ソーシャルタイムラインにフォロワー限定投稿が含まれていない問題を修正

This commit is contained in:
syuilo 2019-01-20 23:55:32 +09:00
parent f793478709
commit e559417cab
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 3 additions and 2 deletions

View file

@ -141,9 +141,9 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
}));
const visibleQuery = user == null ? [{
visibility: { $in: [ 'public', 'home' ] }
visibility: { $in: ['public', 'home'] }
}] : [{
visibility: { $in: [ 'public', 'home' ] }
visibility: { $in: ['public', 'home', 'followers'] }
}, {
// myself (for specified/private)
userId: user._id