diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index 75c8535973..812ad5c763 100644 --- a/src/remote/activitypub/renderer/note.ts +++ b/src/remote/activitypub/renderer/note.ts @@ -105,9 +105,16 @@ export default async function renderNote(note: INote, dive = true): Promise } 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}`; }