Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
在原逻辑上最小化改动
Browse files Browse the repository at this point in the history
kuole-o committed Jan 7, 2025
1 parent 53c0ec9 commit c061e05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/vercel/api/index.js
Original file line number Diff line number Diff line change
@@ -614,9 +614,8 @@ async function commentSubmit (event, request) {
try {
logger.log('开始异步垃圾检测、发送评论通知')
logger.log('POST_SUBMIT')
const baseUrl = process.env.CUSTOM_DOMAIN ? `https://${process.env.CUSTOM_DOMAIN}` : `https://${request.headers.host}`
await Promise.race([
axios.post(baseUrl, {
axios.post(`https://${process.env.CUSTOM_DOMAIN}`, {
event: 'POST_SUBMIT',
comment
}, { headers: { 'x-twikoo-recursion': config.ADMIN_PASS || 'true' } }),

0 comments on commit c061e05

Please sign in to comment.