引入永久删除帖子功能

在 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
Delete topics and posts final
Copyright regarding creations with high level of creation and the right of deletion
Permanent deletion: Is there a database command?
Permanent deletion: Function not available
Soft-delete override?
How to delete post permanently?
"There was an error deleting that topic. Please contact the site's administrator"
Permanent bulk delete of old topics
Deleted post is still there shown as a hidden post
Re-use of `external_id` after a Topic is deleted
Introduce a way to also permanently delete the sensitive info from the staff logs
Deleted replies and topics - are they purged from db or do they stay forever in db?
How to make an undeleteable topic?
How can I permanently delete a topic with multiple posts?
Error during permanently deleting a post of a deleted user
Purge/clean/delete deleted topics from database
Permanent bulk delete of old topics
Are there any performance or inconsistency issues when using Permanently Delete?
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
Digital Online Safety
Deleting all posts in personal message not working
Hidden Settings on Discourse Hosted Sites
Final deletion does not work correctly