0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

Ensure all necessary data is present for topic creation

Dieser Commit ist enthalten in:
Angus McLeod 2020-04-14 20:21:54 +10:00
Ursprung c8a5fe09cd
Commit e056242269

Datei anzeigen

@ -22,7 +22,7 @@ class CustomWizard::Action
def create_topic def create_topic
params = basic_topic_params params = basic_topic_params
if params[:title] && params[:raw] if params[:title].present? && params[:raw].present?
params[:category] = action_category params[:category] = action_category
params[:tags] = action_tags params[:tags] = action_tags
@ -47,7 +47,7 @@ class CustomWizard::Action
user: user user: user
).perform ).perform
if params[:title] && params[:raw] if params[:title].present? && params[:raw].present? && params[:target_usernames].present?
params[:archetype] = Archetype.private_message params[:archetype] = Archetype.private_message
creator = PostCreator.new(user, params) creator = PostCreator.new(user, params)