FIX: don't use the user's discovery text as bio in vanilla importer

This commit is contained in:
Régis Hanol 2014-08-20 23:15:55 +02:00
parent 841d547a48
commit e3640060fc

View file

@ -84,7 +84,7 @@ class ImportScripts::Vanilla < ImportScripts::Base
next if user[:name] == "[Deleted User]" next if user[:name] == "[Deleted User]"
last_activity = activities.select { |a| user[:user_id] == a[:activity_user_id] }.last last_activity = activities.select { |a| user[:user_id] == a[:activity_user_id] }.last
bio_raw = last_activity.try(:[], :story) || user[:discovery_text] || "" bio_raw = last_activity.try(:[], :story) || ""
u = { u = {
id: user[:user_id], id: user[:user_id],