1
0
forked from mirror/misskey

Provides choices as text for AP

This commit is contained in:
mei23 2019-01-21 05:22:32 +09:00
parent 594f1af7e7
commit f676feff9f

View File

@ -105,9 +105,16 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
}
let apText = text;
if (apText == null) apText = '';
// Provides choices as text for AP
if (note.poll != null) {
const cs = note.poll.choices.map(c => `${c.id}: ${c.text}`);
apText += '\n';
apText += cs.join('\n');
}
if (quote) {
if (apText == null) apText = '';
apText += `\n\nRE: ${quote}`;
}