mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-02 10:09:51 -04:00
correct auto track param parsing for WordPress
This commit is contained in:
parent
acba0ea41e
commit
0ec1438b9a
1 changed files with 3 additions and 0 deletions
|
@ -204,6 +204,9 @@ class PostsController < ApplicationController
|
|||
:auto_track
|
||||
]
|
||||
|
||||
# param munging for WordPress
|
||||
params[:auto_track] = !(params[:auto_track].to_s == "false") if params[:auto_track]
|
||||
|
||||
if api_key_valid?
|
||||
# php seems to be sending this incorrectly, don't fight with it
|
||||
params[:skip_validations] = params[:skip_validations].to_s == "true"
|
||||
|
|
Loading…
Add table
Reference in a new issue