mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
FEATURE: Add toggle topic visibility button in popup menu.
This commit is contained in:
@ -93,10 +93,13 @@ class TopicCreator
|
||||
end
|
||||
|
||||
def setup_topic_params
|
||||
@opts[:visible] = true if @opts[:visible].nil?
|
||||
|
||||
topic_params = {
|
||||
title: @opts[:title],
|
||||
user_id: @user.id,
|
||||
last_post_user_id: @user.id
|
||||
last_post_user_id: @user.id,
|
||||
visible: @opts[:visible]
|
||||
}
|
||||
|
||||
[:subtype, :archetype, :meta_data, :import_mode].each do |key|
|
||||
|
Reference in New Issue
Block a user