File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { getPostBlocks } from '@/lib/db/getSiteData'
44import { Feed } from 'feed'
55import fs from 'fs'
66import ReactDOMServer from 'react-dom/server'
7+ import { decryptEmail } from '@/lib/plugins/mailEncrypt'
78
89/**
910 * 生成RSS内容
@@ -37,7 +38,9 @@ export async function generateRss(props) {
3738 const AUTHOR = NOTION_CONFIG ?. AUTHOR || BLOG . AUTHOR
3839 const LANG = NOTION_CONFIG ?. LANG || BLOG . LANG
3940 const SUB_PATH = NOTION_CONFIG ?. SUB_PATH || BLOG . SUB_PATH
40- const CONTACT_EMAIL = NOTION_CONFIG ?. CONTACT_EMAIL || BLOG . CONTACT_EMAIL
41+ const CONTACT_EMAIL = decryptEmail (
42+ NOTION_CONFIG ?. CONTACT_EMAIL || BLOG . CONTACT_EMAIL
43+ )
4144
4245 // 检查 feed 文件是否在10分钟内更新过
4346 if ( isFeedRecentlyUpdated ( './public/rss/feed.xml' , 10 ) ) {
You can’t perform that action at this time.
0 commit comments