mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Change reverse.each
Change on reverse_each because reverse_each loops in reverse order (no intermediate array created).
This commit is contained in:
parent
610dd933a3
commit
aeae63a56a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user