mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user