mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
fix(NewPostNotification): 移除存储帖子过滤中的冗余ID检查
移除storedPosts过滤中不必要的ID前缀检查,该检查在Map构建时已通过scope处理,简化代码逻辑避免重复过滤。
This commit is contained in:
@@ -474,7 +474,6 @@
|
|||||||
// Compare
|
// Compare
|
||||||
const storedMap = new Map(
|
const storedMap = new Map(
|
||||||
storedPosts
|
storedPosts
|
||||||
.filter(p => p.id && p.id.startsWith(`${SCOPE_ID}:`))
|
|
||||||
.map(p => [p.guid, p])
|
.map(p => [p.guid, p])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
8
src/content/.obsidian/workspace.json
vendored
8
src/content/.obsidian/workspace.json
vendored
@@ -171,6 +171,13 @@
|
|||||||
},
|
},
|
||||||
"active": "ea8fe4fe54e0109e",
|
"active": "ea8fe4fe54e0109e",
|
||||||
"lastOpenFiles": [
|
"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-16.png",
|
||||||
"assets/images/del-git-commit-15.png",
|
"assets/images/del-git-commit-15.png",
|
||||||
"assets/images/del-git-commit-14.png",
|
"assets/images/del-git-commit-14.png",
|
||||||
@@ -185,7 +192,6 @@
|
|||||||
"assets/images/del-git-commit-9.png",
|
"assets/images/del-git-commit-9.png",
|
||||||
"assets/images/del-git-commit-8.png",
|
"assets/images/del-git-commit-8.png",
|
||||||
"assets/images/del-git-commit-7.png",
|
"assets/images/del-git-commit-7.png",
|
||||||
"assets/images/del-git-commit-6.png",
|
|
||||||
"2024-11-20.md",
|
"2024-11-20.md",
|
||||||
"posts/fuwari.md"
|
"posts/fuwari.md"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user