Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
upd: move poll out of details
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie authored Oct 11, 2023
1 parent f6e43ff commit 203fdb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/core/entities/NoteEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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_),
} : {}),
Expand All @@ -359,8 +360,6 @@ export class NoteEntityService implements OnModuleInit {
detail: true,
_hint_: options?._hint_,
}) : undefined,

poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
} : {}),
});

Expand Down

0 comments on commit 203fdb8

Please sign in to comment.