partial fix for #1287
This commit is contained in:
5
app/views/post_votes/create.json.erb
Normal file
5
app/views/post_votes/create.json.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<% if @error %>
|
||||
{"success": false, "reason": <%= @error.to_s.to_json %>}
|
||||
<% else %>
|
||||
{"success": true}
|
||||
<% end %>
|
||||
6
app/views/post_votes/create.xml.erb
Normal file
6
app/views/post_votes/create.xml.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<% if @error %>
|
||||
<response success="false"><%= @error.to_s %></response>
|
||||
<% else %>
|
||||
<response success="true"/>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user