引入永久删除帖子功能

在 Discourse 中删除帖子时,我们会执行软删除。这意味着帖子仍然存在于数据库中,以防管理员以后想要恢复它。当被删除的帖子包含敏感信息并且必须从数据库中完全清除时,软删除是不够的。在这些情况下,我们正在引入永久删除帖子的功能。

此功能已在隐藏的站点设置下实现,因为它的危险性很高,一旦帖子被销毁就无法恢复。作为额外的保护机制,帖子只能由删除帖子的同一管理员在 5 分钟后删除,或者由另一位管理员立即删除。如果由于不满足任何先决条件而无法删除帖子,它将显示错误消息:

如果您的站点由我们托管,请联系我们,我们将为您启用它。如果您自己托管,要启用它,您必须进入控制台(rails c)并更改站点设置值:

SiteSetting.can_permanently_delete = true
76 个赞
Admin Deleting Posts
How can I delete a topic permanently?
Permanent deletion bug
How to permanently delete a post?
Error when attempting to permanently delete as moderator
Permanent deletion: Is there a database command?
Copyright regarding creations with high level of creation and the right of deletion
Delete topics and posts final
Soft-delete override?
Deleted post is still there shown as a hidden post
Permanent deletion: Function not available
Re-use of `external_id` after a Topic is deleted
"There was an error deleting that topic. Please contact the site's administrator"
Introduce a way to also permanently delete the sensitive info from the staff logs
How to delete post permanently?
Permanent bulk delete of old topics
Deleted replies and topics - are they purged from db or do they stay forever in db?
How to make an undeleteable topic?
永久删除帖子后,其中的图片及其它附件也会被删除么?
Error during permanently deleting a post of a deleted user
Purge/clean/delete deleted topics from database
How can I permanently delete a topic with multiple posts?
Digital Online Safety
Enable setting to allow admins to permanently delete data
Add a warning when checking personal messages from a user public profile, as an admin
Does enabling Permanently Delete require a rebuild?
How to remove post completely?
Why is it not possible to permanently delete topics or posts?
Create list of links to all soft-deleted posts
Are there any performance or inconsistency issues when using Permanently Delete?
Permanent bulk delete of old topics
Deleting all posts in personal message not working
Hidden Settings on Discourse Hosted Sites
Final deletion does not work correctly

帖子已拆分为新主题:引入一种永久删除员工日志中敏感信息的方法

14 篇帖子已拆分为新主题:永久删除选项在哪里?

此功能的功能有了一个小的更新……

启用此设置后,您现在还可以永久删除帖子修订。 :partying_face:

这可以从修订历史记录中完成,首先隐藏修订,然后会出现“删除修订”的选项:

16 个赞