mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
Support for creating embedded topics via API
This commit is contained in:
@ -256,6 +256,9 @@ class PostsController < ApplicationController
|
||||
# php seems to be sending this incorrectly, don't fight with it
|
||||
params[:skip_validations] = params[:skip_validations].to_s == "true"
|
||||
permitted << :skip_validations
|
||||
|
||||
# We allow `embed_url` via the API
|
||||
permitted << :embed_url
|
||||
end
|
||||
|
||||
params.require(:raw)
|
||||
|
Reference in New Issue
Block a user