From 1281f389e32cb76b52db5546e76d97fdd6c8bf1a Mon Sep 17 00:00:00 2001 From: saint Date: Wed, 3 Jul 2024 14:46:50 +1000 Subject: [PATCH] v0.26.4 Modify upload attachment code to try and make Discourse happy --- gossamer_forums.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 0968098..d140b4a 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -427,7 +427,7 @@ class GossamerForumsImporter < ImportScripts::Base temp_file.rewind 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 # Get the URL of the uploaded file from Discourse