mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply rubocop to script/import_scripts/phorum.rb (#14727)
Followup to b24002018a
This commit is contained in:
parent
b3f642db65
commit
46d96c9feb
@ -25,7 +25,7 @@ class ImportScripts::Phorum < ImportScripts::Base
|
|||||||
import_users
|
import_users
|
||||||
import_categories
|
import_categories
|
||||||
import_posts
|
import_posts
|
||||||
import_attachments
|
import_attachments
|
||||||
end
|
end
|
||||||
|
|
||||||
def import_users
|
def import_users
|
||||||
@ -257,7 +257,7 @@ class ImportScripts::Phorum < ImportScripts::Base
|
|||||||
|
|
||||||
upl_obj = create_upload(post.user.id, filename, real_filename)
|
upl_obj = create_upload(post.user.id, filename, real_filename)
|
||||||
|
|
||||||
# puts "discourse post #{post['id']} and upload #{upl_obj['id']}"
|
# puts "discourse post #{post['id']} and upload #{upl_obj['id']}"
|
||||||
|
|
||||||
if upl_obj&.persisted?
|
if upl_obj&.persisted?
|
||||||
html = html_for_upload(upl_obj, real_filename)
|
html = html_for_upload(upl_obj, real_filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user