v0.47.1 Fix .id nil bug

This commit is contained in:
David Sainty 2024-08-18 16:16:01 +10:00
parent 2d233fdb42
commit 8caa2027cb

View File

@ -1386,7 +1386,7 @@ class GossamerForumsImporter < ImportScripts::Base
reply_user_id = fetch_user_id_mapping(reply_row['user_id_fk'])
if reply_user_id = 0
former_user = User.find_by(username: 'Former_User')
reply_user_id = former.user.id
reply_user_id = former_user.id
end
puts "TIJ II post_id #{post_id}"