From ae40338d35281335604048171bb2abd4084a0162 Mon Sep 17 00:00:00 2001 From: emengweb Date: Thu, 18 May 2023 03:05:08 +0000 Subject: [PATCH] notionPost use BLOG.NOTION_HOST --- lib/notion/getNotion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getNotion.js b/lib/notion/getNotion.js index 32a6c9ca..f73100c2 100644 --- a/lib/notion/getNotion.js +++ b/lib/notion/getNotion.js @@ -36,7 +36,7 @@ export async function getNotion(pageId) { function getPageCover(postInfo) { const pageCover = postInfo.format?.page_cover if (pageCover) { - if (pageCover.startsWith('/')) return 'https://www.notion.so' + pageCover + if (pageCover.startsWith('/')) return BLOG.NOTION_HOST + pageCover if (pageCover.startsWith('http')) return defaultMapImageUrl(pageCover, postInfo) } }