We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c924f commit 8f111a3Copy full SHA for 8f111a3
1 file changed
app/controllers/votes_controller.rb
@@ -41,8 +41,6 @@ def create
41
42
AbilityQueue.add(post.user, "Vote Change on ##{post.id}")
43
44
- post.reload
45
-
46
modified = !destroyed.empty?
47
state = { status: (modified ? 'modified' : 'OK'),
48
vote_id: vote.id,
@@ -63,8 +61,6 @@ def destroy
63
61
end
64
62
65
if vote.destroy
66
67
68
69
render json: { status: 'OK',
70
upvotes: post.upvote_count,
0 commit comments