From 393cea00c2e56584abf0343101880908fd6f5e97 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 9 Sep 2024 14:56:58 +1000 Subject: [PATCH] v0.4 Go back to simpler use of MySQL2 --- goss-destroydeletedposts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goss-destroydeletedposts.rb b/goss-destroydeletedposts.rb index f37258a..423a0fc 100644 --- a/goss-destroydeletedposts.rb +++ b/goss-destroydeletedposts.rb @@ -62,7 +62,7 @@ class GossamerForumsDestroyDeletedPosts < ImportScripts::Base post_id = legacy_post['post_id'] # Look for the post in Discourse by custom field - post = find_post_by_custom_field(legacy_post.post_id) + post = find_post_by_custom_field(post_id) if post puts "DestroyDeletedPosts: Mock-Deleting post with id: #{post.id}"