mirror of
https://github.com/discourse/discourse.git
synced 2025-03-08 04:09:53 +00:00
phpBB3 importer: Permalink for first post of each topic was missing
This commit is contained in:
parent
5be52fa821
commit
32ef30cff9
@ -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…
x
Reference in New Issue
Block a user