diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 001ba3e..9e72f41 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1360,11 +1360,15 @@ class GossamerForumsImporter < ImportScripts::Base sanitized_reply_message = sanitize_post_message(reply_row['post_message']) puts "CREATE REPLY in topic_id #{topic.id}" - + + def get_topic_id + return topic.id + end # Increment the post count for the topic post_number = fetch_db_topic_post_numbers(topic.id).to_i + 1 sqlite_mutex.synchronize do - update_db_topic_post_numbers(topic.id, post_number) +### update_db_topic_post_numbers(topic.id, post_number) + update_db_topic_post_numbers(get_topic_id, post_number) end # Fetch the number of views the post has had