From ebdfb2feb77594271e85a0c479480c21e2bd44c1 Mon Sep 17 00:00:00 2001 From: tess Date: Fri, 22 Nov 2024 19:55:50 +0100 Subject: [PATCH] Comply with type for Packed<'Note'> --- packages/backend/src/core/entities/NoteEntityService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index 985245aeb1..37bca3ff31 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -162,8 +162,8 @@ export class NoteEntityService implements OnModuleInit { packedNote.reactionAcceptance = null; packedNote.reactionAndUserPairCache = undefined; packedNote.reactionCount = 0; - packedNote.reactionEmojis = undefined; - packedNote.reactions = undefined; + packedNote.reactionEmojis = {}; + packedNote.reactions = {}; packedNote.isHidden = true; } }