mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 05:43:09 +02:00
upd: move poll out of details
This commit is contained in:
parent
f6e43ffbd2
commit
203fdb82f1
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
} : {}),
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue