From 0066cb0514a8d5b2fc02c4116fec1f30966f2924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 19 Aug 2015 13:22:17 +0200 Subject: [PATCH] compares ids --- app/views/comments/_comment.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index a60f147ba..d0317d52f 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -30,7 +30,7 @@ <%= t("shared.organization") %> <% end %> - <% if comment.user == @debate.author %> + <% if comment.user_id == @debate.author_id %>  •  <%= t("debates.comment.author") %> @@ -41,7 +41,7 @@ <% if comment.user.official? %>

<%= comment.body %>

- <% elsif comment.user == @debate.author %> + <% elsif comment.user_id == @debate.author_id %>

<%= comment.body %>

<% else %>

<%= comment.body %>