This commit is contained in:
syuilo 2022-02-10 19:01:48 +09:00
parent 89a2f5b936
commit bf7e1ec77e

View file

@ -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, {