fix: 过滤存储的帖子以匹配当前作用域

过滤存储的帖子列表,仅保留ID以当前作用域前缀开头的条目,确保跨作用域数据隔离,避免不同作用域间的帖子数据相互干扰。
This commit is contained in:
二叉树树
2026-01-27 20:12:53 +08:00
parent 487d3a3fe4
commit 3a9b9e9730
2 changed files with 539 additions and 754 deletions

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

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