1
0
Fork 0

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