Improve goss-restorethread.rb to allow for restoring a given Gossamer Forums Forum Post / OP post_id
This commit is contained in:
parent
204cf1788b
commit
24b98174f0
@ -1382,8 +1382,10 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
|
|
||||||
sqlite_mutex.synchronize do
|
sqlite_mutex.synchronize do
|
||||||
# Update the database with the last post time and user for the topic
|
# 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_time(current_topic_id, Time.at(row['post_time']).to_i)
|
||||||
update_db_topic_last_post_user(current_topic_id, discourse_user_id)
|
update_db_topic_last_post_user(current_topic_id, discourse_user_id)
|
||||||
|
puts "zzzz2"
|
||||||
|
|
||||||
# Increment the topic count for the user
|
# 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)
|
update_db_user_topic_count(discourse_user_id, fetch_db_user_topic_count(discourse_user_id).to_i + 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user