From 41c90acbbcba7391c23b2f6715d65331c4a79e62 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Wed, 1 Jan 2020 11:43:59 +1300 Subject: [PATCH] added missing `liked` flag to photos/card --- app/views/photos/_likes.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/photos/_likes.html.haml b/app/views/photos/_likes.html.haml index 93aaede82..4268e05cf 100644 --- a/app/views/photos/_likes.html.haml +++ b/app/views/photos/_likes.html.haml @@ -9,4 +9,5 @@ method: :delete, remote: true, class: 'photo-like like-btn' do = render 'likes/count', likeable: photo, liked: true - else - = render 'likes/count', likeable: photo + = render 'likes/count', likeable: photo, liked: member_signed_in? && photo.liked_by_members_names.include?(current_member.login_name) +