v0.25.7 Creative bug workaround??

This commit is contained in:
David Sainty 2024-07-02 19:00:04 +10:00
parent fbc0545f8a
commit 3530a7fddd

View File

@ -1,5 +1,5 @@
# gossamer threads migration-import code # gossamer threads migration-import code
# v0.25.6 # v0.25.7
require 'mysql2' require 'mysql2'
require 'open-uri' require 'open-uri'
@ -905,7 +905,7 @@ class GossamerForumsImporter < ImportScripts::Base
rescue ActiveRecord::RecordInvalid => e rescue ActiveRecord::RecordInvalid => e
if e.message.include?("Title has already been used") if e.message.include?("Title has already been used")
unique_title = "#{base_title} (#{suffix})" unique_title = "#{title} (#{suffix})"
suffix += 1 suffix += 1
else else
raise e raise e