v0.26.4 Modify upload attachment code to try and make Discourse happy
This commit is contained in:
@@ -427,7 +427,7 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
temp_file.rewind
|
temp_file.rewind
|
||||||
|
|
||||||
puts "Attempting upload..."
|
puts "Attempting upload..."
|
||||||
upload = upload_attachment(user_id, temp_file, att_row['postatt_filename'])
|
upload = upload_attachment_two(user_id, temp_file, att_row['postatt_filename'])
|
||||||
next unless upload
|
next unless upload
|
||||||
|
|
||||||
# Get the URL of the uploaded file from Discourse
|
# Get the URL of the uploaded file from Discourse
|
||||||
|
Reference in New Issue
Block a user