From bf7e1ec77eb733209b114826631a35d024fc4c84 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 10 Feb 2022 19:01:48 +0900 Subject: [PATCH] fix #86 --- src/modules/reminder/index.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/modules/reminder/index.ts b/src/modules/reminder/index.ts index 1bc16f9..434e943 100644 --- a/src/modules/reminder/index.ts +++ b/src/modules/reminder/index.ts @@ -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, {