mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
phpBB3 importer: Permalink for first post of each topic was missing
This commit is contained in:
@@ -56,6 +56,7 @@ module ImportScripts::PhpBB3
|
|||||||
mapped[:pinned_globally] = row[:topic_type] == Constants::POST_GLOBAL
|
mapped[:pinned_globally] = row[:topic_type] == Constants::POST_GLOBAL
|
||||||
mapped[:post_create_action] = proc do |post|
|
mapped[:post_create_action] = proc do |post|
|
||||||
@permalink_importer.create_for_topic(post.topic, row[:topic_id])
|
@permalink_importer.create_for_topic(post.topic, row[:topic_id])
|
||||||
|
@permalink_importer.create_for_post(post, row[:post_id])
|
||||||
end
|
end
|
||||||
|
|
||||||
add_poll(row, mapped) if @settings.import_polls
|
add_poll(row, mapped) if @settings.import_polls
|
||||||
|
|||||||
Reference in New Issue
Block a user