From 057563d37a932e5876cae9378e5aaa1fdc75dfe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Sun, 8 Nov 2015 13:20:36 +0100 Subject: [PATCH] shows author avatar in prop/deb only if not hidden --- app/views/shared/_author_info.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/shared/_author_info.html.erb b/app/views/shared/_author_info.html.erb index b51d3a261..ef46a84bd 100644 --- a/app/views/shared/_author_info.html.erb +++ b/app/views/shared/_author_info.html.erb @@ -1,11 +1,10 @@ -<%= avatar_image(resource.author, seed: resource.author_id, size: 32, class: 'author-photo') %> - <% if resource.author.hidden? || resource.author.erased? %> <%= t("shared.author_info.author_deleted") %> <% else %> + <%= avatar_image(resource.author, seed: resource.author_id, size: 32, class: 'author-photo') %> <%= link_to resource.author.name, user_path(resource.author) %>