diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 1a7d6c4bf36..0731bd0d256 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -561,7 +561,7 @@ class PostsController < ApplicationController 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] - if api_key_valid? + if is_api? # php seems to be sending this incorrectly, don't fight with it params[:skip_validations] = params[:skip_validations].to_s == "true" permitted << :skip_validations