From cd48af639390a3cc782b26cd8a61d7eb3cd975a7 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 3 Nov 2023 15:50:39 +0100 Subject: [PATCH] [backend] Fix polls not federating properly to non-*key servers This fixes a regression that caused the `content` attribute of rendered notes with polls attached to be set to `{}`, causing undefined behavior in Mastodon & Akkoma. Misskey & forks just use the `_misskey_content` attribute, which was unaffected. --- packages/backend/src/remote/activitypub/renderer/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/remote/activitypub/renderer/note.ts b/packages/backend/src/remote/activitypub/renderer/note.ts index cca291463..f6ea3c892 100644 --- a/packages/backend/src/remote/activitypub/renderer/note.ts +++ b/packages/backend/src/remote/activitypub/renderer/note.ts @@ -122,7 +122,7 @@ export default async function renderNote( const asPoll = poll ? { type: "Question", - content: toHtml( + content: await toHtml( Object.assign({}, note, { text: text, }),