mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: welcome topic needs to be pinned globally
This commit is contained in:
parent
24d63a4cb7
commit
93c3ec2a54
|
@ -12,5 +12,5 @@ if Topic.where('id NOT IN (SELECT topic_id from categories where topic_id is not
|
|||
|
||||
welcome = File.read(Rails.root + 'docs/WELCOME-TO-DISCOURSE.md')
|
||||
post = PostCreator.create(Discourse.system_user, raw: welcome, title: "Welcome to Discourse", skip_validations: true)
|
||||
post.topic.update_pinned(true)
|
||||
post.topic.update_pinned(true, true)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user