v0.26.4 Modify upload attachment code to try and make Discourse happy

This commit is contained in:
David Sainty 2024-07-03 14:46:50 +10:00
parent 1036d2898b
commit 1281f389e3

View File

@ -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