diff --git a/app/modules/misskey_preview.py b/app/modules/misskey_preview.py index ea4b09a..c30a243 100644 --- a/app/modules/misskey_preview.py +++ b/app/modules/misskey_preview.py @@ -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 = "
%s
" % rendered body = "@%s:
%s" % ( "https://%s/@%s" % (parsed.netloc, username),