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