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:
Ursprung
c8a5fe09cd
Commit
e056242269
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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)
|
||||||
|
|
Laden …
In neuem Issue referenzieren