This commit is contained in:
EFL
2024-07-14 10:52:42 +08:00
parent c7518deef1
commit 3d8e7c9c5f

View File

@@ -123,6 +123,16 @@ function filterPostBlocks(id, blockMap, slice) {
const newUrl = `https://notion.so/signed/${encodeURIComponent(oldUrl)}?table=block&id=${b?.value?.id}`
b.value.properties.source[0][0] = newUrl
}
if (b?.value?.type === 'synced_block' && b?.value?.properties?.children) {
const childBlocks = b.value.properties.children;
delete clonePageBlock.block[blockId];
// Insert child blocks at the sync block's position
blockIds.splice(i + 1, 0, ...childBlocks);
// Adjust the loop counter to process the newly inserted blocks
i--;
continue;
}
}
// 去掉不用的字段