Fix misskey preview

This commit is contained in:
Nexus 2024-08-06 22:12:09 +01:00
parent 41b2e75865
commit 7c787dd58b
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -40,7 +40,7 @@ class MisskeyPreviewModule(niobot.Module):
continue
text = textwrap.shorten(data["text"], width=1000)
rendered = self.bot._markdown_to_html(text)
rendered = await self.bot._markdown_to_html(text)
text_body = "<blockquote>%s</blockquote>" % rendered
body = "<a href=\"%s\">@%s:</a><br>%s" % (
"https://%s/@%s" % (parsed.netloc, username),