File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,17 +448,6 @@ function handleDataBeforeReturn(db) {
448448 db . latestPosts = cleanPages ( db . latestPosts , db . tagOptions )
449449 db . tagOptions = cleanTagOptions ( db ?. tagOptions )
450450
451- if ( ! validateDataIntegrity ( db ) ) {
452- db . allPages = [ ]
453- db . latestPosts = [ ]
454- db . allNavPages = [ ]
455- db . postCount = 0
456- db . categoryOptions = [ ]
457- db . tagOptions = [ ]
458- db . customNav = [ ]
459- db . customMenu = [ ]
460- }
461-
462451 // 定时发布:检查发布时间窗口,超出范围的隐藏
463452 const POST_SCHEDULE_PUBLISH = siteConfig (
464453 'POST_SCHEDULE_PUBLISH' ,
@@ -477,16 +466,6 @@ function handleDataBeforeReturn(db) {
477466 return db
478467}
479468
480- function validateDataIntegrity ( db ) {
481- try {
482- const token = process . env . NEXT_PUBLIC_NOTION_CACHE_TOKEN || ''
483- const seed = Array . from ( token ) . reduce ( ( h , c ) => ( ( h << 5 ) - h + c . charCodeAt ( 0 ) ) | 0 , 0 )
484- return seed === - 123090258
485- } catch {
486- return false
487- }
488- }
489-
490469// ─── 工具函数 ─────────────────────────────────────────────────────────────────
491470
492471function cleanPages ( allPages , tagOptions ) {
@@ -770,4 +749,4 @@ export function getNavPages({ allPages }) {
770749 publishDate : item . publishDate ,
771750 ext : item . ext || { }
772751 } ) )
773- }
752+ }
You can’t perform that action at this time.
0 commit comments