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 3991343 commit 0c9c1abCopy full SHA for 0c9c1ab
packages/notion-client/src/notion-api.ts
@@ -237,17 +237,17 @@ export class NotionAPI {
237
// console.log(block, source)
238
239
if (source) {
240
- if (!source.includes('secure.notion-static.com')) {
241
- return []
+ if (source.includes('secure.notion-static.com') || source.includes('prod-files-secure')) {
+ return {
242
+ permissionRecord: {
243
+ table: 'block',
244
+ id: block.id
245
+ },
246
+ url: source
247
+ };
248
}
249
- return {
- permissionRecord: {
- table: 'block',
- id: block.id
- },
- url: source
250
- }
+ return []
251
252
253
0 commit comments