mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:27:49 +08:00
Merge pull request #979 from iancmyers/strong-parameters
All parameters for #create in PostsController pass through strong_parameters
This commit is contained in:
@ -38,8 +38,6 @@ class PostCreator
|
||||
@user = user
|
||||
@opts = opts
|
||||
@spam = false
|
||||
|
||||
raise Discourse::InvalidParameters.new(:raw) if @opts[:raw].blank?
|
||||
end
|
||||
|
||||
# True if the post was considered spam
|
||||
|
Reference in New Issue
Block a user