implement xml response for legacy post create action
This commit is contained in:
@@ -9,7 +9,6 @@ class LegacyController < ApplicationController
|
||||
def create_post
|
||||
@upload = Upload.create(params[:post].merge(:server => Socket.gethostname))
|
||||
@upload.delay.process!
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
def users
|
||||
|
||||
4
app/views/legacy/create_post.xml.erb
Normal file
4
app/views/legacy/create_post.xml.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<response>
|
||||
<post_id>0</post_id>
|
||||
<location>http://<%= Danbooru.config.hostname %>/uploads/<%= @upload.id %></location>
|
||||
</response>
|
||||
Reference in New Issue
Block a user