-
我已经通过设置环境变量使用户UA和归属地不显示,但后台仍然可以看到这些信息,我不想收集他们的隐私信息。希望得到解答,谢谢! |
Beta Was this translation helpful? Give feedback.
Answered by
lizheming
Aug 24, 2022
Replies: 1 comment 1 reply
-
可以自定义钩子实现 https://waline.js.org/reference/server.html#presave-comment // index.js
const Waline = require('@waline/vercel');
module.exports = Waline({
preSave(data) {
delete data.ua;
delete data.ip;
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lizheming
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以自定义钩子实现 https://waline.js.org/reference/server.html#presave-comment