Revert "fix(server): Use inner join"

This reverts commit d7e7848c92.
This commit is contained in:
syuilo
2021-03-21 12:31:56 +09:00
parent e987a50e9f
commit c52b504140
19 changed files with 91 additions and 91 deletions

View File

@@ -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'`)
.innerJoinAndSelect('note.user', 'user');
.leftJoinAndSelect('note.user', 'user');
if (user) {
query.andWhere('note.userId != :userId', { userId: user.id });