mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 11:59:17 -05:00
missing spot where old api was used
This commit is contained in:
parent
c4bf138d2c
commit
2b15919aee
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,7 @@ class PostsController < ApplicationController
|
||||||
params[:auto_track] = !(params[:auto_track].to_s == "false") if params[:auto_track]
|
params[:auto_track] = !(params[:auto_track].to_s == "false") if params[:auto_track]
|
||||||
params[:visible] = (params[:unlist_topic].to_s == "false") if params[:unlist_topic]
|
params[:visible] = (params[:unlist_topic].to_s == "false") if params[:unlist_topic]
|
||||||
|
|
||||||
if api_key_valid?
|
if is_api?
|
||||||
# php seems to be sending this incorrectly, don't fight with it
|
# php seems to be sending this incorrectly, don't fight with it
|
||||||
params[:skip_validations] = params[:skip_validations].to_s == "true"
|
params[:skip_validations] = params[:skip_validations].to_s == "true"
|
||||||
permitted << :skip_validations
|
permitted << :skip_validations
|
||||||
|
|
Loading…
Reference in a new issue