mirror of
https://github.com/syuilo/ai.git
synced 2024-11-12 17:08:00 +00:00
#102の変更で不要になった引数を削除 (#103)
This commit is contained in:
parent
fb271619cc
commit
31abe7146e
|
@ -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));
|
||||
});
|
||||
|
||||
// 通知
|
||||
|
|
Loading…
Reference in a new issue