mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
generalize permalink URL in GetSatisfaction import script
This commit is contained in:
parent
bade41db42
commit
ed0b355e15
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue