From ca015a668585a8981380480f9344769d9b06d044 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 7 Jan 2020 12:06:53 -0600 Subject: [PATCH] /post_votes: fix the uploader column showing the voter instead. --- app/views/post_votes/index.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/post_votes/index.html.erb b/app/views/post_votes/index.html.erb index 4cf009465..9695efb3c 100644 --- a/app/views/post_votes/index.html.erb +++ b/app/views/post_votes/index.html.erb @@ -19,9 +19,9 @@ <%= link_to sprintf("%+d", vote.score), post_votes_path(search: { score: vote.score }) %> <% end %> <% t.column "Uploader" do |vote| %> - <%= link_to_user vote.user %> - <%= link_to "»", post_votes_path(search: { user_name: vote.user.name }) %> -
<%= time_ago_in_words_tagged(vote.created_at) %>
+ <%= link_to_user vote.post.uploader %> + <%= link_to "»", post_votes_path(search: { post_tags_match: "user:#{vote.post.uploader.name}" }) %> +
<%= time_ago_in_words_tagged(vote.post.created_at) %>
<% end %> <% t.column "Voter" do |vote| %> <%= link_to_user vote.user %>