From 204cf1788b1170385ec9114c37c6dccd532ed7b1 Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Dec 2024 00:15:16 +1100 Subject: [PATCH] Improve goss-restorethread.rb to allow for restoring a given Gossamer Forums Forum Post / OP post_id --- goss-restorethread.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goss-restorethread.rb b/goss-restorethread.rb index 25ee639..5e59e62 100644 --- a/goss-restorethread.rb +++ b/goss-restorethread.rb @@ -2175,6 +2175,7 @@ class GossamerForumsImporter < ImportScripts::Base # Main method to perform the import def perform_import(restore_forumpost_id) # Secret trick to disable RateLimiting protection in Discourse + puts "CCC" RateLimiter.disable # ActiveRecord::Base.connection.disconnect! rescue nil @@ -2241,6 +2242,6 @@ if ARGV.length != 1 end restore_forumpost_id = ARGV[0] - +puts "BBB" GossamerForumsImporter.new.perform_import(restore_forumpost_id)