Merge branch 'master' of i-am.nexus:nex/nonsensebot

This commit is contained in:
Nexus 2024-08-11 15:18:33 +01:00
commit 293777a688

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),