mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
[reminder]renote対象が消されていた場合にリマインダー解除を行う機能の追加
This commit is contained in:
parent
bc2c7f0581
commit
7c34e2fcd7
1 changed files with 6 additions and 1 deletions
|
@ -149,7 +149,12 @@ export default class extends Module {
|
||||||
text: acct(friend.doc.user) + ' ' + serifs.reminder.notify(friend.name)
|
text: acct(friend.doc.user) + ' ' + serifs.reminder.notify(friend.name)
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} 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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue