This commit is contained in:
syuilo 2020-02-20 13:38:40 +09:00
parent 2504b8391b
commit e59e2d9f0b
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ export async function injectFeatured(timeline: Note[], user?: User | null) {
.andWhere(`note.visibility = 'public'`) .andWhere(`note.visibility = 'public'`)
.leftJoinAndSelect('note.user', 'user'); .leftJoinAndSelect('note.user', 'user');
if (user) query.andWhere('note.userId != :userId', { userId: user.id });
if (user) generateMuteQuery(query, user); if (user) generateMuteQuery(query, user);
const notes = await query const notes = await query