From 7c34e2fcd7d69ec9f8a51309e6c0852e93904750 Mon Sep 17 00:00:00 2001 From: na2na <49822810+na2na-p@users.noreply.github.com> Date: Thu, 14 Apr 2022 21:26:48 +0900 Subject: [PATCH] =?UTF-8?q?[reminder]renote=E5=AF=BE=E8=B1=A1=E3=81=8C?= =?UTF-8?q?=E6=B6=88=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=9F=E5=A0=B4?= =?UTF-8?q?=E5=90=88=E3=81=AB=E3=83=AA=E3=83=9E=E3=82=A4=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=E8=A7=A3=E9=99=A4=E3=82=92=E8=A1=8C=E3=81=86=E6=A9=9F?= =?UTF-8?q?=E8=83=BD=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/reminder/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/reminder/index.ts b/src/modules/reminder/index.ts index 434e943..6813863 100644 --- a/src/modules/reminder/index.ts +++ b/src/modules/reminder/index.ts @@ -149,7 +149,12 @@ export default class extends Module { text: acct(friend.doc.user) + ' ' + serifs.reminder.notify(friend.name) }); } catch (err) { - // TODO: renote対象が消されていたらリマインダー解除 + // renote対象が消されていたらリマインダー解除 + if (err.statusCode === 400 && err.error.error.message === 'No such renote target.') { + this.unsubscribeReply(remind.thing == null && remind.quoteId ? remind.quoteId : remind.id); + this.reminds.remove(remind); + return; + } return; } }