phpBB3 importer: Permalink for first post of each topic was missing

This commit is contained in:
Gerhard Schlager 2017-07-25 23:29:56 +02:00
parent 5be52fa821
commit 32ef30cff9
No known key found for this signature in database
GPG Key ID: 7DACA3C95B36014B
1 changed files with 1 additions and 0 deletions

View File

@ -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