A platform for community discussion. Free, open, simple.
FIX: Method from Telligent import script was deleted by accident
Gerhard Schlagerd27ece9ded9d
diff --git a/script/import_scripts/telligent.rb b/script/import_scripts/telligent.rbindex 177ccb8fba9..6fb3c775f0d 100644--- a/script/import_scripts/telligent.rb+++ b/script/import_scripts/telligent.rb@@ -590,6 +590,18 @@ class ImportScripts::Telligent < ImportScripts::Basemdend+ def mark_topics_as_solved+ puts "", "Marking topics as solved..."++ DB.exec <<~SQL+ INSERT INTO topic_custom_fields (name, value, topic_id, created_at, updated_at)+ SELECT 'accepted_answer_post_id', pcf.post_id, p.topic_id, p.created_at, p.created_at+ FROM post_custom_fields pcf+ JOIN posts p ON p.id = pcf.post_id+ WHERE pcf.name = 'is_accepted_answer' AND pcf.value = 'true'+ SQL+ end+def add_permalink_normalizationsnormalizations = SiteSetting.permalink_normalizationsnormalizations = normalizations.blank? ? [] : normalizations.split('|')