From 203fdb82f11720e15301532fb02e279857ce9caf Mon Sep 17 00:00:00 2001 From: Marie Date: Wed, 11 Oct 2023 20:48:00 +0200 Subject: [PATCH] upd: move poll out of details --- packages/backend/src/core/entities/NoteEntityService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index 22da6fadd..87df5bd39 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -343,6 +343,7 @@ export class NoteEntityService implements OnModuleInit { mentions: note.mentions && note.mentions.length > 0 ? note.mentions : undefined, uri: note.uri ?? undefined, url: note.url ?? undefined, + poll: note.hasPoll ? this.populatePoll(note, meId) : undefined, ...(meId ? { myReaction: this.populateMyReaction(note, meId, options?._hint_), } : {}), @@ -359,8 +360,6 @@ export class NoteEntityService implements OnModuleInit { detail: true, _hint_: options?._hint_, }) : undefined, - - poll: note.hasPoll ? this.populatePoll(note, meId) : undefined, } : {}), });