diff --git a/app/modules/misskey_preview.py b/app/modules/misskey_preview.py index 6945004..a5ba535 100644 --- a/app/modules/misskey_preview.py +++ b/app/modules/misskey_preview.py @@ -42,7 +42,7 @@ class MisskeyPreviewModule(niobot.Module): for line in textwrap.shorten(data["text"], width=1000).splitlines(keepends=True): text_body.append("> " + (line or "\u200b")) body = "@%s:\n\n%s" % ( - "https://%s/notes/%s" % (parsed.netloc, username), + "https://%s/@%s" % (parsed.netloc, username), username, "".join(text_body), ) @@ -50,7 +50,7 @@ class MisskeyPreviewModule(niobot.Module): room, body, reply_to=event, - content_type="html", + content_type="html.raw", override={"body": f"@{username}: {data['text']!r}"} ) sent.append(post_id)