From 42f1f548762fad9031c2c46c8a6f890089f7823f Mon Sep 17 00:00:00 2001 From: saint Date: Thu, 27 Jun 2024 23:54:21 +1000 Subject: [PATCH] v0.16.8 Fix TIFF image support bug --- gossamer_forums.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 4232ede..dd415b1 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.16.7 +# v0.16.8 require 'mysql2' require 'open-uri' @@ -455,6 +455,7 @@ class GossamerForumsImporter < ImportScripts::Base next end temp_file.close + temp_file.unlink temp_file = File.open(converted_tiff_to_png_path) end @@ -515,7 +516,7 @@ class GossamerForumsImporter < ImportScripts::Base # Clean up temporary files temp_file.close - temp_file.unlink + temp_file.unlink if temp_file.is_a?(Tempfile) resized_temp_file.close resized_temp_file.unlink end