FIX: vanilla importer when private topic had no first post (WAT)

This commit is contained in:
Régis Hanol 2014-08-18 15:07:14 +02:00
parent 66aaa9329e
commit b84198af6a
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ class ImportScripts::Vanilla < ImportScripts::Base
puts "", "importing private topics..."
create_posts(@conversations) do |conversation|
next if conversation[:first_message_id].blank?
# list all other user ids in the conversation
user_ids_in_conversation = @user_conversations.select { |uc| uc[:conversation_id] == conversation[:conversation_id] && uc[:user_id] != conversation[:insert_user_id] }
.map { |uc| uc[:user_id] }