Fix misskey preview
This commit is contained in:
parent
41b2e75865
commit
7c787dd58b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class MisskeyPreviewModule(niobot.Module):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
text = textwrap.shorten(data["text"], width=1000)
|
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
|
text_body = "<blockquote>%s</blockquote>" % rendered
|
||||||
body = "<a href=\"%s\">@%s:</a><br>%s" % (
|
body = "<a href=\"%s\">@%s:</a><br>%s" % (
|
||||||
"https://%s/@%s" % (parsed.netloc, username),
|
"https://%s/@%s" % (parsed.netloc, username),
|
||||||
|
|
Loading…
Reference in a new issue