From c384aebed5a3c0dd026e1218aafd2bc52f826be1 Mon Sep 17 00:00:00 2001 From: saint Date: Thu, 27 Jun 2024 15:15:12 +1000 Subject: [PATCH] v0.16.3 Profile image handling improvement --- gossamer_forums.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index f652e5c..6003eb3 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.16.2 +# v0.16.3 require 'mysql2' require 'open-uri' @@ -480,7 +480,8 @@ class GossamerForumsImporter < ImportScripts::Base next if resized_upload.nil? # Ensure the upload ID is valid and exists - if resized_upload && UserAvatar.exists?(custom_upload_id: resized_upload.id) + if resized_upload + # && UserAvatar.exists?(custom_upload_id: resized_upload.id) # Set the avatar using the resized image user.user_avatar = UserAvatar.create!(user_id: user.id, custom_upload_id: resized_upload.id) user.save!