mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 05: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)
|
text: serifs.reminder.notifyWithThing(remind.thing, friend.name)
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
reply = await this.ai.post({
|
try {
|
||||||
renoteId: remind.thing == null && remind.quoteId ? remind.quoteId : remind.id,
|
reply = await this.ai.post({
|
||||||
text: acct(friend.doc.user) + ' ' + serifs.reminder.notify(friend.name)
|
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, {
|
this.subscribeReply(remind.id, remind.isDm, remind.isDm ? remind.userId : reply.id, {
|
||||||
|
|
Loading…
Reference in a new issue