I wonder how the vanilla importer ever worked :(

This commit is contained in:
Régis Hanol 2014-10-29 08:43:10 +01:00
parent a6972fe543
commit 44b708215e
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ImportScripts::Vanilla < ImportScripts::Base
admin_role_id = @roles.select { |r| r[:name] == "Administrator" }.first[:role_id]
moderator_role_id = @roles.select { |r| r[:name] == "Moderator" }.first[:role_id]
activities = @activities.reject { |a| a[:activity_user_id] != a[:regarding_user_id] }
activities = (@activities || []).reject { |a| a[:activity_user_id] != a[:regarding_user_id] }
create_users(@users) do |user|
next if user[:name] == "[Deleted User]"