diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-25 04:20:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-25 04:20:42 +0900 |
| commit | 28086111e16da82ec0b3339189a9866453cff0c9 (patch) | |
| tree | afcd3622b4a3c31be4cab6f883d8df0e18206a64 /src/server/api/endpoints/notes | |
| parent | Improve doc (diff) | |
| download | sharkey-28086111e16da82ec0b3339189a9866453cff0c9.tar.gz sharkey-28086111e16da82ec0b3339189a9866453cff0c9.tar.bz2 sharkey-28086111e16da82ec0b3339189a9866453cff0c9.zip | |
Resolve #4325
Diffstat (limited to 'src/server/api/endpoints/notes')
| -rw-r--r-- | src/server/api/endpoints/notes/featured.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index 0d2187bb06..0bf583b54d 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -42,7 +42,7 @@ export default define(meta, async (ps, user) => { $gt: new Date(Date.now() - day) }, deletedAt: null, - visibility: { $in: ['public', 'home'] }, + visibility: 'public', '_user.host': null, ...(hideUserIds && hideUserIds.length > 0 ? { userId: { $nin: hideUserIds } } : {}) }, { |