Fix #3913: Remove legacy /post/create.xml endpoint.

This commit is contained in:
evazion
2018-09-20 12:10:45 -05:00
parent 958a9f505b
commit 235271706b
3 changed files with 0 additions and 20 deletions

View File

@@ -1,5 +1,4 @@
class LegacyController < ApplicationController
before_action :member_only, :only => [:create_post]
respond_to :json, :xml
def posts
@@ -18,19 +17,6 @@ class LegacyController < ApplicationController
end
end
def create_post
@upload = Upload.new
@upload.server = Socket.gethostname
@upload.file = params[:post][:file]
@upload.source = params[:post][:source]
@upload.tag_string = params[:post][:tags]
@upload.parent_id = params[:post][:parent_id]
@upload.rating = params[:post][:rating][0].downcase
@upload.md5_confirmation = params[:md5] if params[:md5].present?
@upload.save
@upload.process!
end
def users
@users = User.limit(100).search(params).paginate(params[:page])
end