mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
// 去掉不用的字段
|
||||
|
||||
Reference in New Issue
Block a user