Skip to content
Snippets Groups Projects
Commit 94faa4fe authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Remove dead ap

parent f8c7d0f3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment