forked from mirror/misskey
Provides choices as text for AP
This commit is contained in:
parent
594f1af7e7
commit
f676feff9f
@ -105,9 +105,16 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
|
|||||||
}
|
}
|
||||||
|
|
||||||
let apText = text;
|
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 (quote) {
|
||||||
if (apText == null) apText = '';
|
|
||||||
apText += `\n\nRE: ${quote}`;
|
apText += `\n\nRE: ${quote}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user