From 5bf4e31c25630b91b71099743c884fc277f7db78 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 1 Dec 2021 04:47:47 -0600 Subject: [PATCH] users: fix incorrect vote counts on user profile pages. Deleted comment votes and post votes were being incorrectly counted. --- app/views/users/_statistics.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/_statistics.html.erb b/app/views/users/_statistics.html.erb index 465dbc9a8..85ffc986b 100644 --- a/app/views/users/_statistics.html.erb +++ b/app/views/users/_statistics.html.erb @@ -156,8 +156,8 @@ Votes - <%= link_to user.post_votes.count, post_votes_path(search: { user_name: user.name }) %> posts, - <%= link_to user.comment_votes.count, comment_votes_path(search: { user_name: user.name }) %> comments, + <%= link_to user.post_votes.active.count, post_votes_path(search: { user_name: user.name }) %> posts, + <%= link_to user.comment_votes.active.count, comment_votes_path(search: { user_name: user.name }) %> comments, <%= link_to user.forum_post_votes.count, forum_post_votes_path(search: { creator_name: user.name }) %> forum posts