[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.
This commit is contained in:
Laura Hausmann 2023-11-03 15:50:39 +01:00
parent 8b44e32a1a
commit cd48af6393
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -122,7 +122,7 @@ export default async function renderNote(
const asPoll = poll
? {
type: "Question",
content: toHtml(
content: await toHtml(
Object.assign({}, note, {
text: text,
}),