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}"