2026.4.3 / Chg: コマンド実行の際にメンションと通知を時系列にソートしないように

This commit is contained in:
2026-05-03 19:18:58 +09:00
parent 4f2be0e0ed
commit 165500e71d
3 changed files with 7 additions and 6 deletions
+2 -5
View File
@@ -23,9 +23,7 @@ try {
});
if (response.success) {
const notifications = response.data
.filter(notification => notification.category === "reply" && typeof notification.valueid === "string")
.sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime());
const notifications = response.data.filter(notification => notification.category === "reply" && typeof notification.valueid === "string");
const mem = Memory.memory;
const lastReadReply = mem.lastReadReply;
@@ -68,8 +66,7 @@ try {
});
if (response.success) {
const mentions = response.data
.sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime());
const mentions = response.data;
const mem = Memory.memory;
const lastReadMention = mem.lastReadMention;