diff --git a/softdeldeletedposts.rb b/softdeldeletedposts.rb index 737f702..aa08fc1 100644 --- a/softdeldeletedposts.rb +++ b/softdeldeletedposts.rb @@ -1,7 +1,7 @@ # Federated Computer, Inc. # David Sainty 2024 A.D. # Gossamer Threads to Discourse -- Soft Deletion of Marked-As-Deleted Posts -# v0.2 Address where due to import issues there are some stray PostCustomField records for Posts that do not exist. +# v0.3 Ready for actual soft-delete run on live-prod require 'mysql2' require 'active_record' @@ -60,7 +60,7 @@ class GossamerForumsSoftDelDeletedPosts < ImportScripts::Base ## post.deleted_by_id = deleted_by_id ## post.save puts "... actual deleted_at step" -### post.update(deleted_at: Time.now, deleted_by_id: deleted_by_id) + post.update(deleted_at: Time.now, deleted_by_id: deleted_by_id) else puts "SoftDelDeletedPosts: Post with id: #{post.id} is already soft deleted." end