From 32ef30cff9ba60b3e8c6dfd2d5a245b2186fd7c7 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 25 Jul 2017 23:29:56 +0200 Subject: [PATCH] phpBB3 importer: Permalink for first post of each topic was missing --- script/import_scripts/phpbb3/importers/post_importer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/script/import_scripts/phpbb3/importers/post_importer.rb b/script/import_scripts/phpbb3/importers/post_importer.rb index 1884190d4b3..051695585b7 100644 --- a/script/import_scripts/phpbb3/importers/post_importer.rb +++ b/script/import_scripts/phpbb3/importers/post_importer.rb @@ -56,6 +56,7 @@ module ImportScripts::PhpBB3 mapped[:pinned_globally] = row[:topic_type] == Constants::POST_GLOBAL mapped[:post_create_action] = proc do |post| @permalink_importer.create_for_topic(post.topic, row[:topic_id]) + @permalink_importer.create_for_post(post, row[:post_id]) end add_poll(row, mapped) if @settings.import_polls