mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
phpBB3 importer: Permalink for first post of each topic was missing
This commit is contained in:
parent
5be52fa821
commit
32ef30cff9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue