From 94faa4fe4a8b1cc198ab5ba5db14ce6038843d8d Mon Sep 17 00:00:00 2001 From: ArtOfCode- <hello@artofcode.co.uk> Date: Wed, 1 Jul 2020 01:30:47 +0100 Subject: [PATCH] Remove dead ap --- app/controllers/votes_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/votes_controller.rb b/app/controllers/votes_controller.rb index 44e177d30..c13d777b9 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 -- GitLab