mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Apply rubocop to script/import_scripts/phorum.rb (#14727)
Followup to b24002018a10e12b7bdee3a8f5218345716af6ff
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user