加锁文章RSS问题

This commit is contained in:
tangly1024
2022-03-31 10:07:25 +08:00
parent a964d0f782
commit 6bfe030ead

View File

@@ -7,6 +7,10 @@ import { getPostBlocks } from './notion'
const mapPageUrl = id => 'https://www.notion.so/' + id.replace(/-/g, '')
const createFeedContent = async post => {
// 加密的文章内容只返回摘要
if (post.password && post.password !== '') {
return post.summary
}
const blockMap = await getPostBlocks(post.id, 'rss-content')
if (blockMap) {
const content = ReactDOMServer.renderToString(<NotionRenderer