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
|
||||
const storedMap = new Map(
|
||||
storedPosts
|
||||
.filter(p => p.id && p.id.startsWith(`${SCOPE_ID}:`))
|
||||
.map(p => [p.guid, p])
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user