From 297a7657618c2922d5bed4f272d475c42d984614 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Tue, 19 Sep 2023 16:29:19 -0400 Subject: [PATCH] fix: condition --- packages/backend/src/server/api/endpoints/users/notes.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index 80741b326e..ffa2a4e122 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -126,9 +126,10 @@ export default define(meta, paramDef, async (ps, me) => { } if ( - mutedUserIds.includes(user.id) || - blockerIds.includes(user.id) || - (user.host && mutedInstances.includes(user.host)) + me && + (mutedUserIds.includes(user.id) || + blockerIds.includes(user.id) || + (user.host && mutedInstances.includes(user.host))) ) { return Notes.packMany([]); }