mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class ImportScripts::Muut < ImportScripts::Base
|
||||||
|
|
||||||
# create replies
|
# create replies
|
||||||
if thread["replies"].present? && thread["replies"].count > 0
|
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"])
|
if post_id_from_imported_post_id(post["id"])
|
||||||
next # already imported this post
|
next # already imported this post
|
||||||
|
|
Loading…
Reference in a new issue