diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 12:33:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 12:33:37 +0900 |
| commit | 70b129cc421c10260a298519521ca646cbc59ab8 (patch) | |
| tree | 920ed074cbfa05497cfda98c2aaa8c06a65d77b2 /src/server/api/common | |
| parent | Revert "fix(server): Use inner join" (diff) | |
| download | sharkey-70b129cc421c10260a298519521ca646cbc59ab8.tar.gz sharkey-70b129cc421c10260a298519521ca646cbc59ab8.tar.bz2 sharkey-70b129cc421c10260a298519521ca646cbc59ab8.zip | |
fix(server): Use inner join
Diffstat (limited to 'src/server/api/common')
| -rw-r--r-- | src/server/api/common/inject-featured.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/common/inject-featured.ts b/src/server/api/common/inject-featured.ts index 3f47c13385..bbed7f69cb 100644 --- a/src/server/api/common/inject-featured.ts +++ b/src/server/api/common/inject-featured.ts @@ -23,7 +23,7 @@ export async function injectFeatured(timeline: Note[], user?: User | null) { .andWhere(`note.score > 0`) .andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) }) .andWhere(`note.visibility = 'public'`) - .leftJoinAndSelect('note.user', 'user'); + .innerJoinAndSelect('note.user', 'user'); if (user) { query.andWhere('note.userId != :userId', { userId: user.id }); |