mirror of
https://github.com/syuilo/ai.git
synced 2024-11-12 17:08:00 +00:00
fix #86
This commit is contained in:
parent
89a2f5b936
commit
bf7e1ec77e
|
@ -143,10 +143,15 @@ export default class extends Module {
|
|||
text: serifs.reminder.notifyWithThing(remind.thing, friend.name)
|
||||
});
|
||||
} else {
|
||||
reply = await this.ai.post({
|
||||
renoteId: remind.thing == null && remind.quoteId ? remind.quoteId : remind.id,
|
||||
text: acct(friend.doc.user) + ' ' + serifs.reminder.notify(friend.name)
|
||||
});
|
||||
try {
|
||||
reply = await this.ai.post({
|
||||
renoteId: remind.thing == null && remind.quoteId ? remind.quoteId : remind.id,
|
||||
text: acct(friend.doc.user) + ' ' + serifs.reminder.notify(friend.name)
|
||||
});
|
||||
} catch (err) {
|
||||
// TODO: renote対象が消されていたらリマインダー解除
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
this.subscribeReply(remind.id, remind.isDm, remind.isDm ? remind.userId : reply.id, {
|
||||
|
|
Loading…
Reference in a new issue