We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa2402 commit 130d0c3Copy full SHA for 130d0c3
packages/notion-utils/src/get-page-image-urls.ts
@@ -23,7 +23,10 @@ export const getPageImageUrls = (
23
if (block) {
24
if (block.type === 'image') {
25
const signedUrl = recordMap.signed_urls?.[block.id]
26
- const source = signedUrl || block.properties?.source?.[0]?.[0]
+ let source = signedUrl || block.properties?.source?.[0]?.[0]
27
+ if (source.includes('file.notion.so')) {
28
+ source = block.properties?.source?.[0]?.[0]
29
+ }
30
31
if (source) {
32
images.push({
0 commit comments