Lhc_fl
(Linca)
23. Juli 2024 um 07:34
5
Nur ein kleiner Anstoß: Unser letzter Commit hat es Discourse ermöglicht, sensible Log-Nachrichten automatisch zu bereinigen, wenn sie endgültig gelöscht werden.
main ← erase-sensitive-after-perm-delete
opened 04:08AM - 23 Jul 24 UTC
When soft deleteing a topic or post, we will log some details in the staff log, … including the raw content of the post. Before this commit, we will not clear the information in these records. Therefore, after permanently deleting the post, `UserHistory` still retains copy of the permanently deleted post. This is an unexpected behaviour and may raise some potential legal issues.
This commit adds a behavior that when a post is permanently deleted, the details column of the `UserHistory` associated with the post will be overwritten to "(permanently deleted)". At the same time, for permanent deletion, a new `action_id` is introduced to distinguish it from soft deletion.
## Screenshots:

Related meta topic: https://meta.discourse.org/t/introduce-a-way-to-also-permanently-delete-the-sensitive-info-from-the-staff-logs/292546
Wie auch immer, das Log kann auch mit rails c wie folgt gelöscht werden:
UserHistory.where(post_id: xxx).destroy_all
# oder Thema:
UserHistory.where(topic_id: xxx).destroy_all
5 „Gefällt mir“