mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #837 from tangly1024/fix/search-password
fix/search-password
This commit is contained in:
@@ -122,7 +122,8 @@ async function filterByMemCache(allPosts, keyword) {
|
||||
const articleInfo = post.title + post.summary + tagContent + categoryContent
|
||||
let hit = articleInfo.toLowerCase().indexOf(keyword) > -1
|
||||
let indexContent = [post.summary]
|
||||
if (page && page.block) {
|
||||
// 防止搜到加密文章的内容
|
||||
if (page && page.block && !post.password) {
|
||||
const contentIds = Object.keys(page.block)
|
||||
contentIds.forEach(id => {
|
||||
const properties = page?.block[id]?.value?.properties
|
||||
|
||||
Reference in New Issue
Block a user