fix syuilo-issue #136 (#156)

- DMのときはDMで返信するよう変更
This commit is contained in:
tetsuya-ki 2025-01-05 18:49:24 +09:00 committed by GitHub
parent 59ac631527
commit 70f709c8c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,13 +83,20 @@ export default class Message {
await sleep(2000); await sleep(2000);
} }
return await this.ai.post({ const postData = {
replyId: this.note.id, replyId: this.note.id,
text: text, text: text,
fileIds: opts?.file ? [opts?.file.id] : undefined, fileIds: opts?.file ? [opts?.file.id] : undefined,
cw: opts?.cw, cw: opts?.cw,
renoteId: opts?.renote renoteId: opts?.renote
}); };
// DM以外は普通に返信し、DMの場合はDMで返信する
if (this.note.visibility != 'specified') {
return await this.ai.post(postData);
} else {
return await this.ai.sendMessage(this.userId, postData);
}
} }
@bindThis @bindThis