Improve goss-restorethread.rb to allow for restoring a given Gossamer Forums Forum Post / OP post_id
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user