diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-14 11:56:37 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-14 11:56:37 +0900 |
| commit | c267baafdc6533a33985e00289caf4099edca79d (patch) | |
| tree | 7b3646dc9832c80e9773dfb4ceee67121beb657c /src/server/api/endpoints/notes/featured.ts | |
| parent | Better error handling (diff) | |
| download | sharkey-c267baafdc6533a33985e00289caf4099edca79d.tar.gz sharkey-c267baafdc6533a33985e00289caf4099edca79d.tar.bz2 sharkey-c267baafdc6533a33985e00289caf4099edca79d.zip | |
Fix bug
Diffstat (limited to 'src/server/api/endpoints/notes/featured.ts')
| -rw-r--r-- | src/server/api/endpoints/notes/featured.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index 5d2e5b7d44..6a76fb8bc6 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -35,6 +35,7 @@ export default define(meta, async (ps, user) => { const day = 1000 * 60 * 60 * 24 * 3; // 3日前まで const query = Notes.createQueryBuilder('note') + .where('note.userHost IS NULL') .andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) }) .andWhere(`note.visibility = 'public'`) .leftJoinAndSelect('note.user', 'user'); |