missing spot where old api was used

This commit is contained in:
Sam 2016-08-26 10:58:34 +10:00
parent c4bf138d2c
commit 2b15919aee

View file

@ -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