mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 00:53:19 +08:00
fix: 过滤存储的帖子以匹配当前作用域
过滤存储的帖子列表,仅保留ID以当前作用域前缀开头的条目,确保跨作用域数据隔离,避免不同作用域间的帖子数据相互干扰。
This commit is contained in:
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 55 KiB |
@@ -474,6 +474,7 @@
|
||||
// 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