Skip to content

Commit

Permalink
Merge pull request #131 from tangly1024/bug-rss-password
Browse files Browse the repository at this point in the history
加锁文章RSS问题
  • Loading branch information
tangly1024 authored Mar 31, 2022
2 parents a964d0f + 6bfe030 commit 373017f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 373017f

@vercel
Copy link

@vercel vercel bot commented on 373017f Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.