fix(NewPostNotification): 移除存储帖子过滤中的冗余ID检查

移除storedPosts过滤中不必要的ID前缀检查,该检查在Map构建时已通过scope处理,简化代码逻辑避免重复过滤。
This commit is contained in:
二叉树树
2026-01-26 18:20:41 +08:00
parent bfa0805f5d
commit 376f19cb5d
2 changed files with 7 additions and 2 deletions

View File

@@ -474,7 +474,6 @@
// Compare
const storedMap = new Map(
storedPosts
.filter(p => p.id && p.id.startsWith(`${SCOPE_ID}:`))
.map(p => [p.guid, p])
);

View File

@@ -171,6 +171,13 @@
},
"active": "ea8fe4fe54e0109e",
"lastOpenFiles": [
"posts/vercel-github.md",
"posts/go-proxy-gh.md",
"posts/giscus-akismet.md",
"posts/ghedu-free-tech.md",
"posts/ghedu-free-name.md",
"posts/ghedu-free-me.md",
"posts/eopf-github-proxy.md",
"assets/images/del-git-commit-16.png",
"assets/images/del-git-commit-15.png",
"assets/images/del-git-commit-14.png",
@@ -185,7 +192,6 @@
"assets/images/del-git-commit-9.png",
"assets/images/del-git-commit-8.png",
"assets/images/del-git-commit-7.png",
"assets/images/del-git-commit-6.png",
"2024-11-20.md",
"posts/fuwari.md"
]