This commit is contained in:
syuilo 2019-02-25 04:20:42 +09:00
parent 60c9a6528f
commit 28086111e1
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export default define(meta, async (ps, user) => {
$gt: new Date(Date.now() - day) $gt: new Date(Date.now() - day)
}, },
deletedAt: null, deletedAt: null,
visibility: { $in: ['public', 'home'] }, visibility: 'public',
'_user.host': null, '_user.host': null,
...(hideUserIds && hideUserIds.length > 0 ? { userId: { $nin: hideUserIds } } : {}) ...(hideUserIds && hideUserIds.length > 0 ? { userId: { $nin: hideUserIds } } : {})
}, { }, {