From 57c1b15911460d2a8bef40c76a87177d7bc6f126 Mon Sep 17 00:00:00 2001 From: cpradio Date: Fri, 2 Oct 2015 18:10:06 -0400 Subject: [PATCH] FIX: Who Liked a Post now shows UserCard when avatar is clicked --- app/serializers/post_action_user_serializer.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/serializers/post_action_user_serializer.rb b/app/serializers/post_action_user_serializer.rb index 72dbd8e4d..7a63768f0 100644 --- a/app/serializers/post_action_user_serializer.rb +++ b/app/serializers/post_action_user_serializer.rb @@ -1,5 +1,6 @@ class PostActionUserSerializer < BasicUserSerializer - attributes :post_url + attributes :post_url, + :username_lower def id object.user.id @@ -9,6 +10,10 @@ class PostActionUserSerializer < BasicUserSerializer object.user.username end + def username_lower + object.user.username_lower + end + def avatar_template object.user.avatar_template end