From ee1350b3922da03a5f7b1beb9cc096769a345b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A6=E3=81=83?= =?UTF-8?q?=E3=83=BC=E3=80=82?= <56515516+mattyatea@users.noreply.github.com> Date: Fri, 27 Dec 2024 16:50:55 +0900 Subject: [PATCH] Update UserEntityService.ts --- packages/backend/src/core/entities/UserEntityService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts index 64b32f5ad566..1d5f9c8e886a 100644 --- a/packages/backend/src/core/entities/UserEntityService.ts +++ b/packages/backend/src/core/entities/UserEntityService.ts @@ -488,8 +488,8 @@ export class UserEntityService implements OnModuleInit { }))) : [], isBot: user.isBot, isCat: user.isCat, - makeNotesFollowersOnlyBefore: user.makeNotesFollowersOnlyBefore ?? undefined, - makeNotesHiddenBefore: user.makeNotesHiddenBefore ?? undefined, + makeNotesFollowersOnlyBefore: (user.host && user.makeNotesFollowersOnlyBefore) ?? undefined, + makeNotesHiddenBefore: (user.host && user.makeNotesHiddenBefore )?? undefined, instance: user.host ? this.federatedInstanceService.federatedInstanceCache.fetch(user.host).then(instance => instance ? { name: instance.name, softwareName: instance.softwareName,