mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 15:10:11 +00:00
feat(email encrypt): implement base64 encoding for contact email config
This commit is contained in:
@@ -4,6 +4,7 @@ import { getPostBlocks } from '@/lib/db/getSiteData'
|
|||||||
import { Feed } from 'feed'
|
import { Feed } from 'feed'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import ReactDOMServer from 'react-dom/server'
|
import ReactDOMServer from 'react-dom/server'
|
||||||
|
import { decryptEmail } from '@/lib/plugins/mailEncrypt'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成RSS内容
|
* 生成RSS内容
|
||||||
@@ -37,7 +38,9 @@ export async function generateRss(props) {
|
|||||||
const AUTHOR = NOTION_CONFIG?.AUTHOR || BLOG.AUTHOR
|
const AUTHOR = NOTION_CONFIG?.AUTHOR || BLOG.AUTHOR
|
||||||
const LANG = NOTION_CONFIG?.LANG || BLOG.LANG
|
const LANG = NOTION_CONFIG?.LANG || BLOG.LANG
|
||||||
const SUB_PATH = NOTION_CONFIG?.SUB_PATH || BLOG.SUB_PATH
|
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分钟内更新过
|
// 检查 feed 文件是否在10分钟内更新过
|
||||||
if (isFeedRecentlyUpdated('./public/rss/feed.xml', 10)) {
|
if (isFeedRecentlyUpdated('./public/rss/feed.xml', 10)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user