diff --git a/app/controllers/votes_controller.rb b/app/controllers/votes_controller.rb index 44e177d303a6f8a8ac87c1a3c8e0761192bed102..c13d777b9a470f1c01c413f6473e8159263c8fdd 100644 --- a/app/controllers/votes_controller.rb +++ b/app/controllers/votes_controller.rb @@ -5,7 +5,6 @@ class VotesController < ApplicationController def create post = Post.find(params[:post_id]) - ap [post.upvote_count, post.downvote_count] if post.user == current_user && !SiteSetting['AllowSelfVotes'] render(json: { status: 'failed', message: 'You may not vote on your own posts.' }, status: 403) && return