Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
描述
在有镜像站点的情况下,允许管理员规范邮件通知使用的网址。
为前端
twikoo.init
方法新增href
选项。以及全局覆盖变量
TWIKOO_MAGIC_HREF
。用于指定相关接口的
href
参数。尝试解决从镜像站点发送评论时,邮件通知里网址不统一的情况。
也就是模板中的
${POST_URL}
变量。使用示例
先自定义获取理想网址的方法。
然后在初始化评论区时调用并传入
href
选项。或者直接在网页中声明全局变量进行覆盖。