From 61aa2430c1777ca3061931e6bc04dc98842ce634 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 20 Feb 2020 13:38:40 +0900 Subject: [PATCH] Resolve #6028 --- src/server/api/common/inject-featured.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/api/common/inject-featured.ts b/src/server/api/common/inject-featured.ts index ce6d421bb..91b12cadc 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