Improve goss-restorethread.rb to allow for restoring a given Gossamer Forums Forum Post / OP post_id

This commit is contained in:
David Sainty 2024-12-07 13:22:42 +11:00
parent 204cf1788b
commit 24b98174f0

View File

@ -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)