diff --git a/lib/notion/getPostBlocks.js b/lib/notion/getPostBlocks.js index fb486d61..97b70af7 100644 --- a/lib/notion/getPostBlocks.js +++ b/lib/notion/getPostBlocks.js @@ -143,7 +143,8 @@ function convertNotionBlocksToPost(id, blockMap, slice) { b?.value?.type === 'pdf' || b?.value?.type === 'video' || b?.value?.type === 'audio') && - b?.value?.properties?.source?.[0][0] + b?.value?.properties?.source?.[0][0] && + b?.value?.properties?.source?.[0][0].indexOf('attachment') === 0 ) { const oldUrl = b?.value?.properties?.source?.[0][0] const newUrl = `https://notion.so/signed/${encodeURIComponent(oldUrl)}?table=block&id=${b?.value?.id}`