Change reverse.each

Change on reverse_each because reverse_each loops in reverse order (no
intermediate array created).
This commit is contained in:
timur 2016-08-09 16:29:33 +03:00 committed by Guo Xiang Tan
parent 610dd933a3
commit aeae63a56a

View File

@ -122,7 +122,7 @@ class ImportScripts::Muut < ImportScripts::Base
# create replies
if thread["replies"].present? && thread["replies"].count > 0
thread["replies"].reverse.each do |post|
thread["replies"].reverse_each do |post|
if post_id_from_imported_post_id(post["id"])
next # already imported this post