From 8e7ef1bd88e92cca2c3b2ef351c3eed9bee6f7cb Mon Sep 17 00:00:00 2001 From: Masaya Suzuki Date: Sun, 21 Apr 2024 10:46:40 +0900 Subject: [PATCH] =?UTF-8?q?Misskey:=20=E6=8A=95=E7=A8=BF=E7=AF=84=E5=9B=B2?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/clientclass.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/clientclass.py b/library/clientclass.py index ae90f8ddbf..4331b5b110 100644 --- a/library/clientclass.py +++ b/library/clientclass.py @@ -166,9 +166,14 @@ def _post(self, text=None, file_ids=None): if text is not None: text = emoji.emojize(text, language="alias") + visibility = self.message["visibility"] + + if self.message["visibility"] == "public": + visibility = NoteVisibility.HOME + self.client.notes_create( text=text, - visibility=NoteVisibility.HOME, + visibility=visibility, reply_id=self.message["id"], file_ids=file_ids, )