引入一种方法,永久删除员工日志中的敏感信息

Just a bump: our recent commit has enabled Discourse to automatically clean up sensitive log messages when they are permanently deleted.

Anyway, the log can be also deleted with rails c like this:

UserHistory.where(post_id: xxx).destroy_all
# or topic:
UserHistory.where(topic_id: xxx).destroy_all
5 个赞