From fbce1f079b78958ad50a18f885a5705385e31e96 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 9 Dec 2022 09:24:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbuild?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getNotionData.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index d76499b8..50c84696 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -223,7 +223,8 @@ async function getPageRecordMapByNotionAPI({ pageId, from }) { return post && post.type && (post.type === 'Post' || post.type === 'Page') && - (post.status === 'Published' || post.status === 'Invisible') + (post.status === 'Published' || post.status === 'Invisible') && + (!post.slug.startsWith('http')) }) // Sort by date