upd: show poll in non-detailed post if poll exists

Closes transfem-org/Sharkey#52
This commit is contained in:
Mar0xy 2023-10-06 20:36:28 +02:00
parent 5f9f6e4e0e
commit f81d6f8e24
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -86,6 +86,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
await get(note.replyId); await get(note.replyId);
} }
if (note.hasPoll) {
return await this.noteEntityService.packMany(conversation, me, { detail: true });
}
return await this.noteEntityService.packMany(conversation, me); return await this.noteEntityService.packMany(conversation, me);
}); });
} }