From ed0b355e15f6dc0e6986b7b694a18f2aca288590 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 8 Sep 2016 15:01:40 +0530 Subject: [PATCH] generalize permalink URL in GetSatisfaction import script --- script/import_scripts/getsatisfaction.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/import_scripts/getsatisfaction.rb b/script/import_scripts/getsatisfaction.rb index 7fd74dfed..de5ff13a6 100644 --- a/script/import_scripts/getsatisfaction.rb +++ b/script/import_scripts/getsatisfaction.rb @@ -343,7 +343,8 @@ class ImportScripts::GetSatisfaction < ImportScripts::Base tcf = topic.first_post.custom_fields if tcf && tcf["import_id"] slug = @topic_slug[tcf["import_id"].to_i] - slug = slug.gsub("https://community.unbounce.com/", "") + # TODO: replace "http://community.example.com/" with the URL of your community + slug = slug.gsub("http://community.example.com/", "") Permalink.create(url: slug, topic_id: topic.id) end end