diff --git a/backend/src/utils.ts b/backend/src/utils.ts index 2e2d5ca3..5cc7a199 100644 --- a/backend/src/utils.ts +++ b/backend/src/utils.ts @@ -1327,7 +1327,14 @@ export function messageSummary(msg: SavedMessage) { } if (msg.data.poll) { - result += "Poll: ```" + escapeCodeBlock(JSON.stringify(msg.data.poll)) + "```"; + const poll = msg.data.poll; + result += + "Poll: ```" + + escapeCodeBlock( + `Question: ${poll.question.text} + Answers: ${poll.answers.map((answer) => answer.text).join(" | ")}`, + ) + + "```"; } return result;