From 31abe7146ed7fa8996568aa20b03c1ce06eae163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=AA=E3=81=9F?= <91053652+kanatasama@users.noreply.github.com> Date: Sat, 25 Feb 2023 19:36:00 +0900 Subject: [PATCH] =?UTF-8?q?#102=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=A7?= =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=9F=E5=BC=95?= =?UTF-8?q?=E6=95=B0=E3=82=92=E5=89=8A=E9=99=A4=20(#103)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ai.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ai.ts b/src/ai.ts index a3c1766..427e266 100644 --- a/src/ai.ts +++ b/src/ai.ts @@ -145,7 +145,7 @@ export default class 藍 { if (data.text && data.text.startsWith('@' + this.account.username)) { // Misskeyのバグで投稿が非公開扱いになる if (data.text == null) data = await this.api('notes/show', { noteId: data.id }); - this.onReceiveMessage(new Message(this, data, false)); + this.onReceiveMessage(new Message(this, data)); } }); @@ -155,7 +155,7 @@ export default class 藍 { if (data.text && data.text.startsWith('@' + this.account.username)) return; // Misskeyのバグで投稿が非公開扱いになる if (data.text == null) data = await this.api('notes/show', { noteId: data.id }); - this.onReceiveMessage(new Message(this, data, false)); + this.onReceiveMessage(new Message(this, data)); }); // Renoteされたとき @@ -173,7 +173,7 @@ export default class 藍 { // メッセージ mainStream.on('messagingMessage', data => { if (data.userId == this.account.id) return; // 自分は弾く - this.onReceiveMessage(new Message(this, data, true)); + this.onReceiveMessage(new Message(this, data)); }); // 通知