mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 23:16:49 +00:00
加锁文章RSS问题
This commit is contained in:
@@ -7,6 +7,10 @@ import { getPostBlocks } from './notion'
|
|||||||
const mapPageUrl = id => 'https://www.notion.so/' + id.replace(/-/g, '')
|
const mapPageUrl = id => 'https://www.notion.so/' + id.replace(/-/g, '')
|
||||||
|
|
||||||
const createFeedContent = async post => {
|
const createFeedContent = async post => {
|
||||||
|
// 加密的文章内容只返回摘要
|
||||||
|
if (post.password && post.password !== '') {
|
||||||
|
return post.summary
|
||||||
|
}
|
||||||
const blockMap = await getPostBlocks(post.id, 'rss-content')
|
const blockMap = await getPostBlocks(post.id, 'rss-content')
|
||||||
if (blockMap) {
|
if (blockMap) {
|
||||||
const content = ReactDOMServer.renderToString(<NotionRenderer
|
const content = ReactDOMServer.renderToString(<NotionRenderer
|
||||||
|
|||||||
Reference in New Issue
Block a user