users: fix incorrect vote counts on user profile pages.
Deleted comment votes and post votes were being incorrectly counted.
This commit is contained in:
@@ -156,8 +156,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Votes</th>
|
<th>Votes</th>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to user.post_votes.count, post_votes_path(search: { user_name: user.name }) %> posts,
|
<%= link_to user.post_votes.active.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.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
|
<%= link_to user.forum_post_votes.count, forum_post_votes_path(search: { creator_name: user.name }) %> forum posts
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user