From 24b98174f017aad9f99069d8331bc3108c0f2e4a Mon Sep 17 00:00:00 2001 From: saint <saint@saint.li> Date: Sat, 7 Dec 2024 13:22:42 +1100 Subject: [PATCH] Improve goss-restorethread.rb to allow for restoring a given Gossamer Forums Forum Post / OP post_id --- goss-restorethread.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goss-restorethread.rb b/goss-restorethread.rb index 5e59e62..08c0e50 100644 --- a/goss-restorethread.rb +++ b/goss-restorethread.rb @@ -1382,8 +1382,10 @@ class GossamerForumsImporter < ImportScripts::Base sqlite_mutex.synchronize do # Update the database with the last post time and user for the topic + puts "zzzz1" update_db_topic_last_post_time(current_topic_id, Time.at(row['post_time']).to_i) update_db_topic_last_post_user(current_topic_id, discourse_user_id) + puts "zzzz2" # Increment the topic count for the user update_db_user_topic_count(discourse_user_id, fetch_db_user_topic_count(discourse_user_id).to_i + 1)