mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:43:09 +02:00
upd: show poll in non-detailed post if poll exists
Closes transfem-org/Sharkey#52
This commit is contained in:
parent
5f9f6e4e0e
commit
f81d6f8e24
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
await get(note.replyId);
|
||||
}
|
||||
|
||||
if (note.hasPoll) {
|
||||
return await this.noteEntityService.packMany(conversation, me, { detail: true });
|
||||
}
|
||||
|
||||
return await this.noteEntityService.packMany(conversation, me);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue