diff --git a/src/server/api/common/inject-featured.ts b/src/server/api/common/inject-featured.ts index ce6d421bb1..91b12cadce 100644 --- a/src/server/api/common/inject-featured.ts +++ b/src/server/api/common/inject-featured.ts @@ -26,6 +26,8 @@ export async function injectFeatured(timeline: Note[], user?: User | null) { .andWhere(`note.visibility = 'public'`) .leftJoinAndSelect('note.user', 'user'); + if (user) query.andWhere('note.userId != :userId', { userId: user.id }); + if (user) generateMuteQuery(query, user); const notes = await query