From d802ed7c5f339c77e6bbb726dd2d0e469c3b5e03 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 13 Apr 2022 19:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E5=88=B0=E8=AF=84=E8=AE=BA=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 2 +- lib/rss.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/NotionPage.js b/components/NotionPage.js index 4295f224..0930eef4 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -59,7 +59,7 @@ const NotionPage = ({ post }) => { (zoomRef.current).attach(imgList[i]) } } - }, [router.events]) + }, [router?.events]) return
{ } const blockMap = await getPostBlocks(post.id, 'rss-content') if (blockMap) { + post.blockMap = blockMap const content = ReactDOMServer.renderToString() const regexExp = /
.*?<\/svg>
.*?<\/div><\/div>
.*?<\/div><\/div><\/div><\/div>/g return content.replace(regexExp, '') } - return post.summary } export async function generateRss(posts) {