Fix: 毎日18:00の天気予報の仮投稿の表記が本日になっていた問題 / Chg: 毎日7:00の天気予報の日付表記 / Fix: 20件前のユーズを最後に応答したコマンドのユーズとして記録していた問題 / 2026.5.5

This commit is contained in:
2026-05-17 19:35:13 +09:00
parent d974115606
commit 386555ecf3
5 changed files with 20 additions and 7 deletions
+8 -4
View File
@@ -22,7 +22,10 @@ try {
let newLastReadMention = mem.lastReadMention;
{
const response = await client.request("me/notification/", { page: 1, limit: 20 });
const response = await client.request("me/notification/", {
page: 1,
limit: 20,
});
if (response.success) {
const notifications = response.data.filter(n => n.category === "reply" && typeof n.valueid === "string");
@@ -41,7 +44,7 @@ try {
if (mem.lastReadReply >= time)
break;
if (index === 0)
if (index === notifications.length - 1)
newLastReadReply = time;
ueuses.push(ueuseData);
@@ -66,7 +69,7 @@ try {
if (mem.lastReadMention >= time)
break;
if (index === 0)
if (index === mentions.length - 1)
newLastReadMention = time;
ueuses.push(mention);
@@ -82,7 +85,8 @@ try {
const seenIds = new Set();
ueuses = ueuses.filter(ueuse => {
if (seenIds.has(ueuse.uniqid)) return false;
if (seenIds.has(ueuse.uniqid))
return false;
seenIds.add(ueuse.uniqid);
return true;
});