feat(email encrypt): implement base64 encoding for contact email config

This commit is contained in:
anime
2025-07-07 17:55:10 +08:00
parent 143bae3d8d
commit e9f31ba1c3

View File

@@ -4,6 +4,7 @@ import { getPostBlocks } from '@/lib/db/getSiteData'
import { Feed } from 'feed'
import fs from 'fs'
import ReactDOMServer from 'react-dom/server'
import { decryptEmail } from '@/lib/plugins/mailEncrypt'
/**
* 生成RSS内容
@@ -37,7 +38,9 @@ export async function generateRss(props) {
const AUTHOR = NOTION_CONFIG?.AUTHOR || BLOG.AUTHOR
const LANG = NOTION_CONFIG?.LANG || BLOG.LANG
const SUB_PATH = NOTION_CONFIG?.SUB_PATH || BLOG.SUB_PATH
const CONTACT_EMAIL = NOTION_CONFIG?.CONTACT_EMAIL || BLOG.CONTACT_EMAIL
const CONTACT_EMAIL = decryptEmail(
NOTION_CONFIG?.CONTACT_EMAIL || BLOG.CONTACT_EMAIL
)
// 检查 feed 文件是否在10分钟内更新过
if (isFeedRecentlyUpdated('./public/rss/feed.xml', 10)) {