mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Username for topic creation is required
This commit is contained in:
@ -9,6 +9,10 @@ class Admin::EmbeddingController < Admin::AdminController
|
||||
end
|
||||
|
||||
def update
|
||||
if params[:embedding][:embed_by_username].blank?
|
||||
return render_json_error(I18n.t('site_settings.embed_username_required'))
|
||||
end
|
||||
|
||||
Embedding.settings.each do |s|
|
||||
@embedding.send("#{s}=", params[:embedding][s])
|
||||
end
|
||||
|
Reference in New Issue
Block a user