From 376f19cb5d41c5e7ff97ef9b6cf046edf7ae818d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Mon, 26 Jan 2026 18:20:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(NewPostNotification):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E5=B8=96=E5=AD=90=E8=BF=87=E6=BB=A4=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=86=97=E4=BD=99ID=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除storedPosts过滤中不必要的ID前缀检查,该检查在Map构建时已通过scope处理,简化代码逻辑避免重复过滤。 --- src/components/widget/NewPostNotification.astro | 1 - src/content/.obsidian/workspace.json | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/widget/NewPostNotification.astro b/src/components/widget/NewPostNotification.astro index 63ec1b3ff..71fe26708 100644 --- a/src/components/widget/NewPostNotification.astro +++ b/src/components/widget/NewPostNotification.astro @@ -474,7 +474,6 @@ // Compare const storedMap = new Map( storedPosts - .filter(p => p.id && p.id.startsWith(`${SCOPE_ID}:`)) .map(p => [p.guid, p]) ); diff --git a/src/content/.obsidian/workspace.json b/src/content/.obsidian/workspace.json index ce6c1988f..902c204aa 100644 --- a/src/content/.obsidian/workspace.json +++ b/src/content/.obsidian/workspace.json @@ -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" ]